Add tandoor

This commit is contained in:
Gal 2025-01-04 16:23:17 +01:00
parent 57b36125e7
commit 84fd13988d
Signed by: gal
GPG Key ID: F035BC65003BC00B
2 changed files with 56 additions and 0 deletions

1
tandoor/README.md Normal file
View File

@ -0,0 +1 @@
# tandoor

View File

@ -0,0 +1,55 @@
services:
db_recipes:
restart: always
image: postgres:16-alpine
volumes:
- ./postgresql:/var/lib/postgresql/data
env_file:
- ./.env
networks:
- default
web_recipes:
restart: always
image: vabene1111/recipes
env_file:
- ./.env
volumes:
- staticfiles:/opt/recipes/staticfiles
# Do not make this a bind mount, see https://docs.tandoor.dev/install/docker/#volumes-vs-bind-mounts
- nginx_config:/opt/recipes/nginx/conf.d
- ./mediafiles:/opt/recipes/mediafiles
depends_on:
- db_recipes
networks:
- default
nginx_recipes:
image: nginx:mainline-alpine
restart: always
env_file:
- ./.env
volumes:
# Do not make this a bind mount, see https://docs.tandoor.dev/install/docker/#volumes-vs-bind-mounts
- nginx_config:/etc/nginx/conf.d:ro
- staticfiles:/static:ro
- ./mediafiles:/media:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.recipes.rule=Host(`recipes.velouria.dev`)"
- "traefik.http.routers.recipes.entrypoints=websecure"
- "traefik.http.routers.recipes.tls.certresolver=myresolver"
depends_on:
- web_recipes
networks:
- default
- traefik
networks:
default:
traefik:
external: true
volumes:
nginx_config:
staticfiles: