mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
docker-compose is now functional
added a cronjob in the pyShelf container to update the Books directory every 5 minutes went back to using a variable for the exposed port
This commit is contained in:
10
README.md
vendored
10
README.md
vendored
@@ -78,6 +78,16 @@ All configuration is now handled by the installer.
|
|||||||
|
|
||||||
Running via the Django test server might be possible, albeit not recomended.
|
Running via the Django test server might be possible, albeit not recomended.
|
||||||
|
|
||||||
|
## Docker
|
||||||
|
|
||||||
|
Installation for Docker is handled by docker-compose
|
||||||
|
|
||||||
|
It will spin up two containers: one postgres, one for the Django application
|
||||||
|
|
||||||
|
Edit [docker/.env](docker.env)
|
||||||
|
`sudo docker-compose -f docker/docker-compose.yml --env-file docker/.env build`
|
||||||
|
`sudo docker-compose -f docker/docker-compose.yml --env-file=docker/.env up -d`
|
||||||
|
|
||||||
### In Progress
|
### In Progress
|
||||||
|
|
||||||
#### Organizational tools.
|
#### Organizational tools.
|
||||||
|
|||||||
2
docker/.env
vendored
2
docker/.env
vendored
@@ -1,4 +1,4 @@
|
|||||||
LOCAL_BOOK_DIR=/home/marvin/git/hatpyShelf/docker/Books/
|
LOCAL_BOOK_DIR=~/Books #This directory will be craeted otherwise link to the directory containing your .epub files
|
||||||
PORT=8088
|
PORT=8088
|
||||||
POSTGRES_VER=12.2
|
POSTGRES_VER=12.2
|
||||||
POSTGRES_USER=pyshelf
|
POSTGRES_USER=pyshelf
|
||||||
|
|||||||
3
docker/docker-compose.yml
vendored
3
docker/docker-compose.yml
vendored
@@ -13,8 +13,9 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- "${LOCAL_BOOK_DIR}:/usr/src/app/Books"
|
- "${LOCAL_BOOK_DIR}:/usr/src/app/Books"
|
||||||
|
- "./cron/root:/etc/crontabs/root"
|
||||||
ports:
|
ports:
|
||||||
- "8088:8000"
|
- "${PORT}:8000"
|
||||||
links:
|
links:
|
||||||
- "db:db"
|
- "db:db"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user