35 lines
1006 B
YAML
35 lines
1006 B
YAML
---
|
|
version: "2"
|
|
services:
|
|
db_recipes:
|
|
image: postgres:11-alpine
|
|
volumes:
|
|
- /srv/dev-disk-by-uuid-cda15581-b397-4ab7-8698-acea81fc1e9c/tandoor/postgresql:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=postgres
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
restart: unless-stopped
|
|
|
|
recipes:
|
|
image: vabene1111/recipes:latest
|
|
container_name: recipes
|
|
ports:
|
|
- 6969:8080
|
|
volumes:
|
|
- /srv/dev-disk-by-uuid-cda15581-b397-4ab7-8698-acea81fc1e9c/tandoor:/opt/recipes/staticfiles
|
|
- /srv/dev-disk-by-uuid-cda15581-b397-4ab7-8698-acea81fc1e9c/tandoor:/opt/recipes/mediafiles
|
|
environment:
|
|
|
|
- SECRET_KEY=du2l2yQ81VYGW29ZX2HEijX9k11aZKe72xeEonNRtaA3o84h
|
|
- DB_ENGINE=django.db.backends.postgresql
|
|
- POSTGRES_HOST=db_recipes
|
|
- POSTGRES_PORT=5432
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=postgres
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db_recipes
|
|
|