forked from ThoughtWorksInc/CD4ML-Scenarios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
126 lines (117 loc) · 2.5 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
version: "3.7"
services:
jenkins:
container_name: jenkins
image: ericnaglertw/cd4ml-build-master:2
ports:
- "10000:8080"
environment:
FLUENTD_HOST: fluentd
FLUENTD_PORT: 24224
TENANT: "jenkins"
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
image: cd4ml-model:latest
container_name: model
ports:
- "11000:5005"
environment:
FLUENTD_HOST: fluentd
FLUENTD_PORT: 24224
networks:
- jenkins_nw
depends_on:
- fluentd
mlflow:
container_name: mlflow
image: ericnaglertw/cd4ml-mlflow:1
ports:
- "12000:5000"
networks:
- jenkins_nw
depends_on:
- model
dev:
container_name: dev
image: jupyter/minimal-notebook:latest
environment:
- JUPYTER_ENABLE_LAB=yes
ports:
- "8888:8888"
- "8889:8888"
volumes:
- .:/home/jovyan/
networks:
- jenkins_nw
depends_on:
- jenkins
volumes:
jenkins_home:
driver: local
data01:
driver: local
networks:
jenkins_nw:
driver: bridge
secrets:
jenkins-admin-password:
file: ./jenkins/jenkins-admin-password.txt