-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcompose.yml
More file actions
34 lines (32 loc) · 906 Bytes
/
compose.yml
File metadata and controls
34 lines (32 loc) · 906 Bytes
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
services:
server:
image: ghcr.io/aet-devops25/w06-template/server:latest
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
client:
image: ghcr.io/aet-devops25/w05-template/client:latest
ports:
- "3000:3000"
environment:
- PUBLIC_API_URL=${PUBLIC_API_URL:-http://localhost:8080}
depends_on:
- server
restart: unless-stopped
client-canary:
image: ghcr.io/aet-devops25/w06-template/client-canary:latest #canary tag
ports:
- "3001:3000" # canary deployment on port 3001
environment:
- PUBLIC_API_URL=${PUBLIC_API_URL:-http://localhost:8080}
depends_on:
- server
restart: unless-stopped