mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-22 16:34:27 +01:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
services:
|
|
|
|
db_recipes:
|
|
image: postgres:16-alpine
|
|
container_name: tandoor_db
|
|
restart: always
|
|
expose:
|
|
- 5432
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/postgresql:/var/lib/postgresql/data
|
|
env_file:
|
|
- ./.env
|
|
#networks:
|
|
# - internal
|
|
|
|
web_recipes:
|
|
image: vabene1111/recipes:2
|
|
container_name: tandoor_recipes
|
|
restart: always
|
|
ports:
|
|
- 8080:80
|
|
expose:
|
|
- 80
|
|
env_file:
|
|
- ./.env
|
|
volumes:
|
|
- ${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
|
|
depends_on:
|
|
- db_recipes
|
|
#networks:
|
|
# - proxy
|
|
# - internal
|
|
#labels:
|
|
# - traefik.enable=true
|
|
# - traefik.http.routers.tandoor.rule=Host(`tandoor.example.com`)
|
|
# - traefik.http.services.tandoor.loadbalancer.server.port=80
|
|
# - traefik.docker.network=proxy
|
|
# # Part for local lan services only
|
|
# #- traefik.http.routers.tandoor.middlewares=local-ipwhitelist@file
|
|
|
|
#networks:
|
|
# proxy:
|
|
# external: true
|
|
# internal:
|
|
# internal: true |