2023-02-15 21:45:31 +00:00
|
|
|
services:
|
2024-11-04 12:08:51 +00:00
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
db_recipes:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: postgres:16-alpine
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: tandoor_db
|
2024-11-04 12:08:51 +00:00
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- 5432
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/postgresql:/var/lib/postgresql/data
|
2023-02-15 21:45:31 +00:00
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
|
|
|
|
web_recipes:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: vabene1111/recipes:latest
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: tandoor_recipes
|
2024-11-04 12:08:51 +00:00
|
|
|
restart: always
|
2023-02-15 21:45:31 +00:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
2024-11-04 12:08:51 +00:00
|
|
|
expose:
|
|
|
|
- 8080
|
2023-02-15 21:45:31 +00:00
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/staticfiles:/opt/recipes/staticfiles
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/nginx_config:/opt/recipes/nginx/conf.d
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/mediafiles:/opt/recipes/mediafiles
|
2023-02-15 21:45:31 +00:00
|
|
|
depends_on:
|
|
|
|
- db_recipes
|
2024-11-04 12:08:51 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.tandoor.rule=Host(`tandoor.example.com`)
|
|
|
|
# - traefik.http.services.tandoor.loadbalancer.server.port=8080
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# # Part for local lan services only
|
|
|
|
# #- traefik.http.routers.tandoor.middlewares=local-ipwhitelist@file
|
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|