diff --git a/tandoor/compose.yml b/tandoor/compose.yml new file mode 100644 index 0000000..24e85e3 --- /dev/null +++ b/tandoor/compose.yml @@ -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 diff --git a/tandoor/env.example b/tandoor/env.example new file mode 100644 index 0000000..921b817 --- /dev/null +++ b/tandoor/env.example @@ -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 +