Files
pyShelf/docker/docker-compose.yml
Tony Hendrick 0876b3953b 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
2020-05-14 11:29:50 -07:00

23 lines
469 B
YAML
Vendored

version: "3.3"
services:
db:
image: "postgres:${POSTGRES_VER}"
environment:
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_DB=${POSTGRES_DB}"
pyshelf:
build:
context: ./
dockerfile: Dockerfile
volumes:
- "${LOCAL_BOOK_DIR}:/usr/src/app/Books"
- "./cron/root:/etc/crontabs/root"
ports:
- "${PORT}:8000"
links:
- "db:db"
depends_on:
- db