infrastructure/ansible/roles/tandoor/files/docker-compose.yml
Renovate 7741fbc163
All checks were successful
/ terraform (push) Successful in 25s
/ ansible (push) Successful in 1m34s
Update vabene1111/recipes Docker tag to v1.5.13
2024-02-19 14:07:32 +00:00

49 lines
1.3 KiB
YAML

version: "2.3"
services:
tandoor:
image: vabene1111/recipes:1.5.13
environment:
- TIMEZONE={{ timezone }}
- DEBUG=0
- ALLOWED_HOSTS=recipes.jakehoward.tech
- SECRET_KEY={{ vault_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
- EMAIL_HOST=smtp.eu.mailgun.org
- EMAIL_PORT=465
- EMAIL_HOST_USER={{ vault_tandoor_email_user }}
- EMAIL_HOST_PASSWORD={{ vault_tandoor_email_password }}
- EMAIL_USE_TLS=1
- DEFAULT_FROM_EMAIL={{ vault_tandoor_email_from }}
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:
- /mnt/speed/dbs/postgres/tandoor/:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=tandoor
- POSTGRES_USER=tandoor
networks:
traefik:
external: true