-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
118 lines (110 loc) · 2.63 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
107
108
109
110
111
112
113
114
115
116
117
118
version: '2.1'
services:
osui:
image: artyins-osui:latest
restart: always
ports:
- '888:80'
volumes:
- ./shareddata:/var/www/html/data/shareddata
metabase:
image: metabase/metabase:latest
restart: always
ports:
- '3000:3000'
expose:
- '3000'
depends_on:
mysqldb:
condition: service_healthy
mysqldb:
image: mysql:5.7
restart: always
volumes:
- ./mysql-data:/var/lib/mysql
- ./mysql-init-files:/docker-entrypoint-initdb.d
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: password
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: reportdb
MYSQL_ROOT_HOST: '%'
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "mysqldb"]
#test: mysql -h mysqldb --user=user --password=pass -e 'select 1 from reports'
timeout: 5s
retries: 3
interval: 10s
ports:
- '3306:3306'
expose:
- '3306'
extractionsvc:
image: artyins-extractionservice
restart: always
volumes:
- ./logs:/logs
- ./shareddata:/shareddata
- ./config:/config
healthcheck:
test: wget --spider --quiet http://localhost:9891/test
#test: ["CMD","curl", "--fail","http://localhost:9891/test", "||","exit","1"]
timeout: 10s
interval: 10s
retries: 3
classifiersvc:
image: artyins-classifierservice
restart: always
volumes:
- ./logs:/logs
- ./config:/config
healthcheck:
test: wget --spider --quiet http://localhost:9891/test
timeout: 10s
interval: 5s
retries: 3
savesvc:
image: artyins-saveservice
restart: always
volumes:
- ./logs:/logs
- ./config:/config
healthcheck:
test: wget --spider --quiet http://localhost:9891/test
timeout: 10s
retries: 3
interval: 5s
depends_on:
mysqldb:
condition: service_healthy
monitorsvc:
image: artyins-monitor
restart: always
volumes:
- ./logs:/logs
- ./shareddata:/shareddata
- ./config:/config
depends_on:
jobsvc:
condition: service_healthy
jobsvc:
image: artyins-jobservice
restart: always
volumes:
- ./logs:/logs
- ./config:/config
healthcheck:
test: wget --spider --quiet http://localhost:9891/test
#test: ["CMD","curl", "--fail","http://jobsvc:9891/test", "||","exit","1"]
# timeout: 10s
# retries: 3
# interval: 20s
depends_on:
savesvc:
condition: service_healthy
classifiersvc:
condition: service_healthy
extractionsvc:
condition: service_healthy