-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
49 lines (49 loc) · 1.25 KB
/
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
services:
frontend:
build:
context: ./frontend/
working_dir: /frontend/
image: fl-online-demo-frontend
volumes:
- type: bind
source: ./presets/myersTriangle/src.java
target: /frontend/public/default-src.java
read_only: true
- type: bind
source: ./presets/myersTriangle/test.java
target: /frontend/public/default-test.java
read_only: true
restart: always
depends_on:
backend:
condition: service_healthy
backend:
build:
context: ./backend/
working_dir: /backend/
image: fl-online-demo-backend
volumes:
- type: bind
source: ./util/HealthCheck.java
target: /HealthCheck.java
read_only: true
restart: always
healthcheck:
test: ["CMD", "java", "/HealthCheck.java", "||", "exit", "1"]
start_period: 30s
kdemo:
build: https://github.com/kusumotolab/kGenProg-online-demo.git#8d8ceb60d344acc86515b4863ce69ef00e699ae6
restart: always
nginx:
image: nginx:1.21.6
volumes:
- type: bind
source: ./nginx/default.conf
target: /etc/nginx/conf.d/default.conf
read_only: true
restart: always
ports:
- 3000:80
depends_on:
- backend
- frontend