mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
The "version: 3" entry is obsolete and throws a warning: 'version' is obsolete. AFAIK, there's no reason to keep it. There's a lengthy discussion of this issue in a different repo: https://github.com/jasonacox/Powerwall-Dashboard/issues/453 They got rid of "version" in that project. It seems like it should be removed here too.
41 lines
975 B
YAML
41 lines
975 B
YAML
services:
|
|
db_recipes:
|
|
restart: always
|
|
image: postgres:16-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:
|
|
- 80: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:
|