forked from ThoughtWorksInc/CD4ML-Scenarios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
178 lines (166 loc) · 3.76 KB
/
docker-compose.yaml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: "3.7"
services:
welcome:
container_name: welcome_server
image: httpd:2.4-alpine
ports:
- "3000:80"
volumes:
- ./public-html:/usr/local/apache2/htdocs/
networks:
- jenkins_nw
jenkins:
container_name: jenkins
build:
context: .
dockerfile: Dockerfile-jenkins
ports:
- "10000:8080"
environment:
FLUENTD_HOST: fluentd
FLUENTD_PORT: 24224
TENANT: "jenkins"
ACCESS_KEY: ${ACCESS_KEY}
SECRET_KEY: ${SECRET_KEY}
volumes:
- jenkins_home:/var/jenkins_home
secrets:
- jenkins-admin-password
networks:
- jenkins_nw
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.0
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=true
- http.port=9200
- http.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- jenkins_nw
healthcheck:
test: curl -s http://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s
timeout: 10s
retries: 5
depends_on:
- jenkins
kib01:
image: docker.elastic.co/kibana/kibana:7.6.0
container_name: kib01
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://es01:9200
ELASTICSEARCH_HOSTS: http://es01:9200
networks:
- jenkins_nw
depends_on:
- es01
fluentd:
image: ericnaglertw/cd4ml-fluentd:1
container_name: fluentd
volumes:
- ./fluentd/conf:/fluentd/etc
ports:
- "24224:24224"
networks:
- jenkins_nw
depends_on:
- es01
model:
build:
context: .
dockerfile: Dockerfile-model
container_name: model
ports:
- "11000:5005"
environment:
FLUENTD_HOST: fluentd
FLUENTD_PORT: 24224
MLFLOW_S3_ENDPOINT_URL: http://minio:9000
ACCESS_KEY: ${ACCESS_KEY}
SECRET_KEY: ${SECRET_KEY}
networks:
- jenkins_nw
depends_on:
- fluentd
- minio
minio:
image: minio/minio:RELEASE.2020-08-08T04-50-06Z
container_name: minio
ports:
- "9000:9000"
environment:
MINIO_ACCESS_KEY: ${ACCESS_KEY}
MINIO_SECRET_KEY: ${SECRET_KEY}
entrypoint: sh
command: -c 'mkdir -p /data/cd4ml-ml-flow-bucket && /usr/bin/minio server /data'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
- minio-storage:/data
networks:
- jenkins_nw
mlflow:
container_name: mlflow
build:
context: .
dockerfile: Dockerfile-mlflow
environment:
MLFLOW_S3_ENDPOINT_URL: http://minio:9000
AWS_ACCESS_KEY_ID: ${ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_KEY}
ports:
- "12000:5000"
networks:
- jenkins_nw
volumes:
- mlflow-storage:/mnt/mlflow
depends_on:
- minio
dev:
container_name: dev
image: jupyter/minimal-notebook:54462805efcb
environment:
- JUPYTER_ENABLE_LAB=yes
ports:
- "8888:8888"
- "8889:8888"
entrypoint: "start.sh"
command: "jupyter lab --LabApp.token=''"
volumes:
- .:/home/jovyan/
networks:
- jenkins_nw
depends_on:
- jenkins
volumes:
jenkins_home:
driver: local
data01:
driver: local
minio-storage:
driver: local
mlflow-storage:
driver: local
networks:
jenkins_nw:
driver: bridge
secrets:
jenkins-admin-password:
file: ./jenkins/jenkins-admin-password.txt