add tandoor

This commit is contained in:
rick 2025-01-19 19:44:20 +01:00
parent 44dbc9c59b
commit 201c857063
Signed by: Rick
GPG key ID: A2E7B6CA577C8F07
2 changed files with 32 additions and 0 deletions

19
tandoor/compose.yml Normal file
View file

@ -0,0 +1,19 @@
services:
web_recipes:
restart: always
image: vabene1111/recipes
env_file:
- .env
volumes:
- ${TANDOOR_STATIC}:/opt/recipes/staticfiles
- ${TANDOOR_MEDIAS}:/opt/recipes/mediafiles
networks:
- rick_db
- tandoor
networks:
rick_db:
name: rick_db
external: true
tandoor:
driver: bridge

13
tandoor/env.example Normal file
View file

@ -0,0 +1,13 @@
# random secret key, use for example `base64 /dev/urandom | head -c50` to generate one
SECRET_KEY=
ALLOWED_HOSTS=
DB_ENGINE=django.db.backends.postgresql
POSTGRES_HOST=rick_db
POSTGRES_DB=tandoor
POSTGRES_PORT=5432
POSTGRES_USER=psql
POSTGRES_PASSWORD=
TANDOOR_STATIC=/opt/tandoor/static
TANDOOR_MEDIAS=/opt/tandoor/medias