Initial commit

This commit is contained in:
2023-06-14 12:34:50 +02:00
parent edf2f346b7
commit ac10b43a8a
18 changed files with 466 additions and 0 deletions

View File

@ -0,0 +1,34 @@
---
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