53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
version: "3"
|
|
services:
|
|
db_recipes:
|
|
restart: always
|
|
image: postgres:16-alpine
|
|
volumes:
|
|
- ./postgresql:/var/lib/postgresql/data
|
|
env_file:
|
|
- ./.env
|
|
networks:
|
|
- default
|
|
|
|
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
|
|
networks:
|
|
- default
|
|
|
|
nginx_recipes:
|
|
image: nginx:mainline-alpine
|
|
restart: always
|
|
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
|
|
networks:
|
|
- default
|
|
- nginx-proxy
|
|
|
|
networks:
|
|
default:
|
|
nginx-proxy:
|
|
external:
|
|
name: nginx-proxy
|
|
|
|
volumes:
|
|
nginx_config:
|
|
staticfiles:
|