A bookshelf for your mokuro-scanned books
1080sm.mov
- Copy .env.example to .env
- Edit any environment variables you desire (see below)
- Run
docker compose -f docker-compose.<environment>.yml up -d
where environment is "dev" or "prod". - Upgrade your database with
docker compose -f docker-compose.<environment>.yml exec next-mokuro-bookshelf npx prisma migrate deploy
- Create a new user. The first user will automatically get admin role.
DATABASE_URL
is a Postgresql database connection URL for prisma. If you are using the one provided in the docker-compose yaml, ensure the username and password match the environment variables set for that.IMAGE_PATH
is the path the images will be stored. I recommend using the path that is volume-mounted in the docker-compose yaml.INVITE_CODE
is a secret variable that users need to know in order to sign up
In addition, the postgresql database included in the docker-compose will use:
POSTGRESQL_USER
the user that the application should use to connectPOSTGRESQL_PASSWORD
the password the application should use to connect
- Download, install, and run
mokuro
on your volumes via the instructions in kha-white/mokuro - Run the application and create an account
- Navigate to
/admin/volumes
and upload a cover, the images, and_ocr
json files. - Go back to the home page and start reading!
If you see logs like
db-1 | initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
db-1 | fixing permissions on existing directory /var/lib/postgresql/data ...
db-1 | The files belonging to this database system will be owned by user "postgres".
db-1 | This user must also own the server process.
Try changing the permissions on db
folder in this project's root? chmod u+x db
might work.
- ChristopherFritz/Mokuro-Bookshelf is a static html page that tracks your state with localstorage