-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (57 loc) · 1.17 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
worldview-be1:
image: ${DOCKER_IMAGE}
container_name: worldview-be1
restart: always
env_file:
- .env
ports:
- 3000
networks:
- worldview-backend
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/']
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
worldview-be2:
image: ${DOCKER_IMAGE}
container_name: worldview-be2
restart: always
env_file:
- .env
ports:
- 3000
networks:
- worldview-backend
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/']
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
caddy:
image: caddy:2-alpine
container_name: caddy
restart: unless-stopped
networks:
- worldview-backend
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:
worldview-backend:
driver: bridge
volumes:
caddy_data:
caddy_config: