-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 968 Bytes
/
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
services:
tangerine-frontend:
container_name: tangerine-frontend
networks:
- tangerine
build:
context: .
dockerfile: Dockerfile
healthcheck:
test: curl --fail "http://localhost:3000/" || exit 1
start_period: 10s
start_interval: 1s
interval: 10s
timeout: 5s
retries: 5
caddy:
container_name: tangerine-caddy
networks:
- tangerine
build:
context: .
dockerfile: Dockerfile.caddy
ports:
- "3000:3000"
environment:
- BACKEND_SERVICE=tangerine-backend
- BACKEND_PORT=8000
- FRONTEND_SERVICE=tangerine-frontend
- FRONTEND_PORT=3000
healthcheck:
test: curl --fail "http://localhost:8000/" || exit 1
start_period: 10s
start_interval: 1s
interval: 10s
timeout: 5s
retries: 5
depends_on:
tangerine-frontend:
condition: service_healthy
networks:
tangerine:
external: true