mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
31 lines
674 B
YAML
Vendored
31 lines
674 B
YAML
Vendored
version: "3.7"
|
|
services:
|
|
db:
|
|
image: "postgres:${POSTGRES_VER}"
|
|
environment:
|
|
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
|
- "POSTGRES_USER=${POSTGRES_USER}"
|
|
- "POSTGRES_DB=${POSTGRES_DB}"
|
|
volumes:
|
|
- ./postgres_data/:/var/lib/postgresql/data/
|
|
|
|
pyshelf:
|
|
build:
|
|
context: ./
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- "${LOCAL_BOOK_DIR}:/usr/src/app/Books"
|
|
# - "./cron/root:/etc/crontabs/root"
|
|
# - "./scripts/wait-for-it.sh:/usr/src/app/src/"
|
|
ports:
|
|
- "${PORT}:8000"
|
|
depends_on:
|
|
- db
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 10.20.20.0/24
|