25 lines
543 B
YAML
25 lines
543 B
YAML
|
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:
|
||
|
- "8090:8000"
|
||
|
- "1337:1337"
|
||
|
volumes:
|
||
|
- "${LOCAL_BOOK_DIR}:/books"
|
||
|
depends_on:
|
||
|
- db
|
||
|
volumes:
|
||
|
db_data:
|