Updating config file to look for env. variable, if not available use it from the JSON

This commit is contained in:
Ketan Patel
2022-02-09 00:10:20 -05:00
parent 2ba572adb4
commit 3281331159
4 changed files with 18 additions and 30 deletions

4
docker-compose.yml vendored
View File

@@ -3,15 +3,16 @@ version: "3.7"
services:
db:
image: "postgres"
restart: always
environment:
- "POSTGRES_PASSWORD=pyshelf"
- "POSTGRES_USER=pyshelf"
- "POSTGRES_DB=pyshelf"
volumes:
- "db_data:/var/lib/postgresql/data/"
pyshelf:
image: "pyshelf/pyshelf"
restart: always
ports:
- "8000:8000"
- "1337:1337"
@@ -19,6 +20,5 @@ services:
- "${LOCAL_BOOK_DIR}:/books"
depends_on:
- db
volumes:
db_data: