-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 787 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 787 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
35
services:
rate-limiter-backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: rate-limiter-backend
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 40s
networks:
- rate-limiter-network
rate-limiter-frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: rate-limiter-frontend
ports:
- "5173:5173"
depends_on:
rate-limiter-backend:
condition: service_healthy
environment:
- VITE_API_URL=http://localhost:8080
networks:
- rate-limiter-network
networks:
rate-limiter-network:
driver: bridge