2023-12-26 18:09:00 +01:00
|
|
|
services:
|
|
|
|
tandoor:
|
|
|
|
image: vabene1111/recipes:latest
|
|
|
|
container_name: tandoor
|
|
|
|
restart: always
|
|
|
|
env_file:
|
2024-04-15 06:00:12 +02:00
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/.env
|
2023-12-26 18:09:00 +01:00
|
|
|
volumes:
|
2024-04-15 06:00:12 +02:00
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/database:/opt/recipes/database
|
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/mediafiles:/opt/recipes/mediafiles
|
2023-12-26 18:09:00 +01:00
|
|
|
- tandoor-staticfiles:/opt/recipes/staticfiles
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "http://127.0.0.1:8080/recipes", "-qO", "/dev/null"]
|
2024-01-19 06:41:05 +01:00
|
|
|
interval: 30s
|
2023-12-26 18:09:00 +01:00
|
|
|
retries: 10
|
|
|
|
profiles:
|
|
|
|
- tandoor
|
|
|
|
|
|
|
|
tandoor-nginx:
|
|
|
|
image: nginx:mainline-alpine
|
|
|
|
container_name: tandoor-nginx
|
|
|
|
restart: always
|
|
|
|
env_file:
|
2024-04-15 06:00:12 +02:00
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/.env
|
2023-12-26 18:09:00 +01:00
|
|
|
volumes:
|
2024-04-15 06:00:12 +02:00
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/nginx:/etc/nginx/conf.d:ro
|
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/mediafiles:/media:ro
|
2023-12-26 18:09:00 +01:00
|
|
|
- tandoor-staticfiles:/static:ro
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "http://127.0.0.1/recipes", "-qO", "/dev/null"]
|
2024-01-19 06:41:05 +01:00
|
|
|
interval: 30s
|
2023-12-26 18:09:00 +01:00
|
|
|
retries: 10
|
|
|
|
depends_on:
|
|
|
|
- tandoor
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.tandoor.rule=(Host(`${HOSTNAME}`) && PathPrefix(`/recipes`))
|
|
|
|
- traefik.http.routers.tandoor.tls=true
|
|
|
|
- traefik.http.routers.tandoor.tls.certresolver=myresolver
|
|
|
|
- traefik.http.services.tandoor.loadbalancer.server.port=80
|
|
|
|
- homepage.group=Apps
|
|
|
|
- homepage.name=Tandoor
|
|
|
|
- homepage.icon=tandoor.png
|
|
|
|
- homepage.href=/recipes
|
|
|
|
- homepage.description=Smart recipe management
|
|
|
|
- homepage.weight=1
|
|
|
|
profiles:
|
|
|
|
- tandoor
|
|
|
|
|
|
|
|
tandoor-backup:
|
|
|
|
image: adrienpoupa/rclone-backup:latest
|
|
|
|
container_name: tandoor-backup
|
|
|
|
restart: always
|
|
|
|
env_file:
|
2024-04-15 06:00:12 +02:00
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/backup.env
|
2023-12-26 18:09:00 +01:00
|
|
|
environment:
|
|
|
|
- BACKUP_FOLDER_NAME=mediafiles
|
|
|
|
- BACKUP_FOLDER_PATH=/data/mediafiles
|
|
|
|
- DB_TYPE=sqlite
|
|
|
|
- SQLITE_DATABASE=/database/recipes.db
|
|
|
|
volumes:
|
2024-04-15 06:00:12 +02:00
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/database:/database
|
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/mediafiles:/data/mediafiles
|
|
|
|
- ${CONFIG_ROOT:-.}/tandoor/backup:/config
|
2023-12-26 18:09:00 +01:00
|
|
|
profiles:
|
|
|
|
- tandoor
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
tandoor-staticfiles:
|