From 7804eb3a44ca244f25b1dfdfafb6a4dc16d9f49f Mon Sep 17 00:00:00 2001 From: Michel Date: Sat, 16 Sep 2023 22:14:32 +0200 Subject: [PATCH] New addition: Tandoor Recipes --- tandoorrecipes/.env.sample | 13 +++++++++++++ tandoorrecipes/compose.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 tandoorrecipes/.env.sample create mode 100644 tandoorrecipes/compose.yml diff --git a/tandoorrecipes/.env.sample b/tandoorrecipes/.env.sample new file mode 100644 index 0000000..f21e2b2 --- /dev/null +++ b/tandoorrecipes/.env.sample @@ -0,0 +1,13 @@ +# Uncomment and change the following variables if you want to use them. +#RESTART=unless-stopped +#SYNOLOGY_VOLUME=volume1 +#STACK_NAME=tandoorrecipes +#TANDOORRECIPES_CONTAINER_NAME=TandoorRecipes +#TANDOORRECIPES_TAG=latest +#TANDOORRECIPES_PORT=8080 +#TANDOORRECIPES_SECRET_KEY=YOUR_SECRET_KEY +#TANDOORRECIPES_POSTGRESQL_CONTAINER_NAME=TandoorRecipes-PostgreSQL +#TANDOORRECIPES_POSTGRESQL_TAG=latest +#TANDOORRECIPES_POSTGRESQL_DATABASE=tandoorrecipes +#TANDOORRECIPES_POSTGRESQL_USER=tandoorrecipes +#TANDOORRECIPES_POSTGRESQL_PASSWORD=tandoorrecipes diff --git a/tandoorrecipes/compose.yml b/tandoorrecipes/compose.yml new file mode 100644 index 0000000..3295322 --- /dev/null +++ b/tandoorrecipes/compose.yml @@ -0,0 +1,35 @@ +services: + #Tandoor Recipes + tandoorrecipes: + container_name: ${TANDOORRECIPES_CONTAINER_NAME:-TandoorRecipes} + image: vabene1111/recipes:${TANDOORRECIPES_TAG:-latest} + restart: ${RESTART:-unless-stopped} + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:8080/ + environment: + DB_ENGINE: django.db.backends.postgresql + POSTGRES_HOST: tandoorrecipes-postgresql + POSTGRES_PORT: 5432 + POSTGRES_DB: ${TANDOORRECIPES_POSTGRESQL_DATABASE:-tandoorrecipes} + POSTGRES_USER: ${TANDOORRECIPES_POSTGRESQL_USER:-tandoorrecipes} + POSTGRES_PASSWORD: ${TANDOORRECIPES_POSTGRESQL_PASSWORD:-tandoorrecipes} + SECRET_KEY: ${TANDOORRECIPES_SECRET_KEY:-YOUR_SECRET_KEY} + ports: + - ${TANDOORRECIPES_PORT:-8080}:8080 + volumes: + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-tandoorrecipes}/${TANDOORRECIPES_CONTAINER_NAME:-TandoorRecipes}/opt/recipes/mediafiles:/opt/recipes/mediafiles + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-tandoorrecipes}/${TANDOORRECIPES_CONTAINER_NAME:-TandoorRecipes}/opt/recipes/staticfiles:/opt/recipes/staticfiles + + # PostgreSQL (for Tandoor Recipes) + tandoorrecipes-postgresql: + container_name: ${TANDOORRECIPES_POSTGRESQL_CONTAINER_NAME:-TandoorRecipes-PostgreSQL} + image: postgres:${TANDOORRECIPES_POSTGRESQL_TAG:-latest} + restart: ${RESTART:-unless-stopped} + healthcheck: + test: ["CMD", "pg_isready", "-q", "-d", "${TANDOORRECIPES_POSTGRESQL_DATABASE:-tandoorrecipes}", "-U", "${TANDOORRECIPES_POSTGRESQL_USER:-tandoorrecipes}"] + environment: + POSTGRES_DB: ${TANDOORRECIPES_POSTGRESQL_DATABASE:-tandoorrecipes} + POSTGRES_USER: ${TANDOORRECIPES_POSTGRESQL_USER:-tandoorrecipes} + POSTGRES_PASSWORD: ${TANDOORRECIPES_POSTGRESQL_PASSWORD:-tandoorrecipes} + volumes: + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-tandoorrecipes}/${TANDOORRECIPES_POSTGRESQL_CONTAINER_NAME:-TandoorRecipes-PostgreSQL}/var/lib/postgresql/data:/var/lib/postgresql/data