# cat docker-compose.yml
version: "3"
services:
db_recipes:
restart: always
image: postgres:15-alpine
volumes:
- ./postgresql:/var/lib/postgresql/data
env_file:
- ./.env
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
nginx_recipes:
image: nginx:mainline-alpine
restart: always
ports:
- 8282:80
env_file:
- ./.env
depends_on:
- web_recipes
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
volumes:
nginx_config:
staticfiles:
Starting recipes, it works, I can create my account, create my space, but " This application is not running with a Postgres database backend. This is ok but not recommended as some features only work with postgres databases. "
Tandoor Version
1.5.10
Setup
Docker / Docker-Compose
Reverse Proxy
Others (please state below)
Other
Own nginx
Bug description
Getting the .env from https://raw.githubusercontent.com/vabene1111/recipes/develop/.env.template and rename it to .env Getting docker-compose file from https://raw.githubusercontent.com/vabene1111/recipes/develop/docs/install/docker/traefik-nginx/docker-compose.yml
Modifying the nginx_recipes port to match my own nginx's reverse proxy conf (8282)
Starting recipes, it works, I can create my account, create my space, but " This application is not running with a Postgres database backend. This is ok but not recommended as some features only work with postgres databases. "
(and it's not link to https://github.com/TandoorRecipes/recipes/issues/1936 because I haven't override env variable from docker-compose)
Relevant logs