2022-08-24 22:17:29 +01:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
tandoor:
|
2023-05-26 10:00:36 +01:00
|
|
|
image: vabene1111/recipes:1.4.12
|
2022-08-24 22:17:29 +01:00
|
|
|
environment:
|
|
|
|
- TIMEZONE={{ timezone }}
|
|
|
|
- DEBUG=0
|
|
|
|
- ALLOWED_HOSTS=recipes.jakehoward.tech
|
|
|
|
- SECRET_KEY={{ tandoor_secret_key }}
|
|
|
|
- DATABASE_URL=postgres://tandoor:tandoor@db:5432/tandoor
|
|
|
|
- DB_ENGINE=django.db.backends.postgresql
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
- POSTGRES_PORT=5432
|
|
|
|
- POSTGRES_USER=tandoor
|
|
|
|
- POSTGRES_PASSWORD=tandoor
|
|
|
|
- GUNICORN_MEDIA=1
|
2022-09-22 09:13:28 +01:00
|
|
|
- EMAIL_HOST=smtp.eu.mailgun.org
|
|
|
|
- EMAIL_PORT=465
|
|
|
|
- EMAIL_HOST_USER={{ tandoor_email_user }}
|
|
|
|
- EMAIL_HOST_PASSWORD={{ tandoor_email_password }}
|
|
|
|
- EMAIL_USE_TLS=1
|
|
|
|
- DEFAULT_FROM_EMAIL={{ tandoor_email_from }}
|
2022-08-24 22:17:29 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.tandoor.rule=Host(`recipes.jakehoward.tech`)
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- traefik
|
|
|
|
volumes:
|
|
|
|
- "{{ app_data_dir }}/tandoor/media:/opt/recipes/mediafiles"
|
|
|
|
tmpfs:
|
|
|
|
- /opt/recipes/staticfiles
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:14-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2023-06-15 21:18:50 +01:00
|
|
|
- /mnt/speed/dbs/postgres/tandoor/:/var/lib/postgresql/data
|
2022-08-24 22:17:29 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=tandoor
|
|
|
|
- POSTGRES_USER=tandoor
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|