-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
107 lines (99 loc) · 2.09 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3.8"
services:
generator:
build: ./knapset-generator
image: ghcr.io/peres-richard/knapset-generator
container_name: generator
environment:
PORT: 3000
expose:
- 3000
read_only: true
cap_drop:
- 'ALL'
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/generator/health" ]
interval: 90s
timeout: 3s
retries: 5
start_period: 5s
networks:
- generator
naive-solver:
build: ./naive_solver
image: ghcr.io/peres-richard/naive-solver
container_name: naive-solver
environment:
PORT: 3000
expose:
- 3000
read_only: false
cap_drop:
- 'ALL'
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/naive-solver/health" ]
interval: 90s
timeout: 3s
retries: 5
start_period: 5s
networks:
- naive-solver
average-solver:
build: ./average_solver
image: ghcr.io/peres-richard/average-solver
container_name: average-solver
expose:
- 3000
read_only: false
cap_drop:
- 'ALL'
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/average-solver/health" ]
interval: 90s
timeout: 3s
retries: 5
start_period: 5s
networks:
- average-solver
frontend:
build: ./frontend
image: ghcr.io/peres-richard/knapset-ui
container_name: knapset-ui
environment:
PORT: 3000
expose:
- 3000
read_only: false
cap_drop:
- 'ALL'
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/" ]
interval: 90s
timeout: 3s
retries: 5
start_period: 5s
networks:
- frontend
nginx-proxy:
image: nginx:1.23-alpine
container_name: proxy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
user: nginx
read_only: false
cap_drop:
- 'ALL'
networks:
- frontend
- naive-solver
- average-solver
- generator
volumes:
nginx-proxy:
networks:
frontend:
naive-solver:
average-solver:
generator: