-
-
Notifications
You must be signed in to change notification settings - Fork 275
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.19 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
web_recipes:
image: vabene1111/recipes:latest
container_name: tandoor_recipes
restart: always
ports:
- 8080:8080
expose:
- 8080
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
#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