forked from AET-DevOps25/w03-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 778 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 778 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
version: '3.8'
services:
server:
image: ghcr.io/aet-devops25/in-class-exercise-template/server:latest
build:
context: ./server
dockerfile: Dockerfile
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/in-class-exercise-template/client:latest
build:
context: ./client
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- PUBLIC_API_URL=${PUBLIC_API_URL:-http://localhost:8080}
depends_on:
- server
restart: unless-stopped