forked from james-willett/bug-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 856 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 856 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
36
37
38
39
40
41
42
networks:
bugtracker:
driver: bridge
services:
frontend:
build:
context: ./bugtracker-frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8080
depends_on:
backend:
condition: service_healthy
networks:
- bugtracker
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3000"]
interval: 10s
timeout: 5s
retries: 3
backend:
build:
context: ./bugtracker-backend
ports:
- "8080:8080"
volumes:
- ./data:/app/data
networks:
- bugtracker
healthcheck:
test: ["CMD", "wget", "-O", "-", "http://localhost:8080/api/health"]
interval: 10s
timeout: 5s
retries: 3
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"