-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
77 lines (76 loc) · 1.6 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
x-defaults:
&defaults
ENVIRONMENT: production
services:
frontend:
build: ./frontend
environment:
<<: [ *defaults ]
PORT: 3000
VITE_API_BASE_URL: http://backend:9090
VITE_BROWSER_API_BASE_URL: https://hacktoberfest.teknologiumum.com
healthcheck:
test: curl -f http://localhost:3000/ || exit 1
interval: 30s
timeout: 20s
retries: 5
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 30s
max_attempts: 10
window: 120s
resources:
limits:
memory: 500MB
cpus: '0.75'
reservations:
memory: 10MB
cpus: '0.10'
networks:
- hacktoberfest
logging:
driver: json-file
options:
max-size: 10M
max-file: 3
backend:
build: ./backend
environment:
<<: [ *defaults ]
LISTEN_ADDR: 0.0.0.0:9090
NUM_WORKERS: 1
SCRAPE_INTERVAL: 7200
GITHUB_TOKEN:
healthcheck:
test: curl -f http://localhost:9090/healthz || exit 1
interval: 30s
timeout: 20s
retries: 5
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 30s
max_attempts: 10
window: 120s
resources:
limits:
memory: 500MB
cpus: '1'
reservations:
memory: 10MB
cpus: '0.10'
networks:
- hacktoberfest
logging:
driver: json-file
options:
max-size: 10M
max-file: 3
networks:
hacktoberfest:
driver: bridge