-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
67 lines (63 loc) · 1.85 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
version: "2.1"
services:
easyminer-mysql:
container_name: easyminer-mysql
image: mariadb:10
environment:
- MYSQL_ROOT_PASSWORD=root
command: mysqld --sql_mode=""
healthcheck:
test: "mysql --host=easyminer-mysql --user=root --password=root --execute='show databases' "
interval: 15s
retries: 5
easyminer-frontend:
container_name: easyminer-frontend
image: kizi/easyminer-frontend:v2.7
ports:
- "8894:80"
healthcheck:
test: "curl -f http://easyminer-frontend/easyminercenter"
interval: 30s
retries: 5
depends_on:
easyminer-mysql:
condition: service_healthy
easyminer-scorer:
condition: service_healthy
easyminer-backend:
container_name: easyminer-backend
image: kizi/easyminer-backend:v2.4
ports:
- "8891:8891"
- "8892:8892"
- "8893:8893"
environment:
- EM_USER_ENDPOINT=http://easyminer-frontend/easyminercenter
healthcheck:
test: "curl -f http://localhost:8891/easyminer-data/index.html && curl -f http://localhost:8892/easyminer-preprocessing/index.html && curl -f http://localhost:8893/easyminer-miner/index.html"
interval: 30s
retries: 5
depends_on:
easyminer-frontend:
condition: service_healthy
easyminer-scorer:
container_name: easyminer-scorer
image: kizi/easyminer-scorer:v2.4
ports:
- "8080:8080"
healthcheck:
test: "curl -f http://localhost:8080/swagger-ui.html"
interval: 30s
retries: 5
easyminer:
image: busybox:1
command: /bin/true
depends_on:
easyminer-frontend:
condition: service_healthy
easyminer-backend:
condition: service_healthy
easyminer-scorer:
condition: service_healthy
easyminer-mysql:
condition: service_healthy