-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.21 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
treegens-be1:
image: ${DOCKER_IMAGE}
restart: always
env_file:
- .env
environment:
- ENABLE_CRONJOBS=true
ports:
- 5000
networks:
- treegens-network
deploy:
replicas: 2
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5000/health']
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
treegens-be2:
image: ${DOCKER_IMAGE}
restart: always
env_file:
- .env
ports:
- 5000
networks:
- treegens-network
deploy:
replicas: 2
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5000/health']
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
caddy:
image: caddy:2-alpine
container_name: caddy
restart: always
networks:
- treegens-network
ports:
- 80:80
- 443:443
env_file:
- .env
environment:
- BACKEND_URL=${BACKEND_URL:-}
- IP_WHITELIST=${IP_WHITELIST:-0.0.0.0/0}
volumes:
- caddy_data:/data
- caddy_config:/config
- ./Caddyfile:/etc/caddy/Caddyfile
networks:
treegens-network:
driver: bridge
volumes:
caddy_data:
caddy_config: