-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-suite-medium-startup.yml
228 lines (227 loc) · 6.21 KB
/
docker-compose-suite-medium-startup.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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
version: '2.2'
services:
postgres:
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: Keycloak@1234
LOGSPOUT: ignore
mem_limit: "512000000"
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U keycloak -d keycloak"]
interval: 30s
timeout: 15s
retries: 10
networks:
keycloak-nw:
aliases:
- postgres
keycloak:
image: quay.io/keycloak/keycloak:latest
healthcheck:
test: ["CMD", "curl", "-I", "-XGET", "http://localhost:8080/auth/realms/master"]
interval: 30s
timeout: 30s
retries: 15
mem_limit: "1024000000"
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
mysql_dataBASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: Keycloak@1234
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Admin@1234
LOGSPOUT: ignore
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- 9990:8080
depends_on:
postgres:
condition: service_healthy
networks:
keycloak-nw:
aliases:
- keycloak
conductor-boot-nw:
aliases:
- keycloak
elasticsearch:
image: elasticsearch:5.6
restart: on-failure
networks:
conductor-boot-nw:
aliases:
- elasticsearch
kibana-nw:
aliases:
- elasticsearch
ports:
- 9200:9200
- 9300:9300
healthcheck:
test: ["CMD", "curl","-I" ,"-XGET", "http://localhost:9200/_cat/health"]
interval: 30s
timeout: 30s
retries: 15
depends_on:
keycloak:
condition: service_healthy
mem_limit: "3096000000"
volumes:
- es_data:/usr/share/elasticsearch/data:rw
mysql:
image: mysql:5.7
restart: on-failure
networks:
conductor-boot-nw:
aliases:
- mysql
ports:
- 3306:3306
- 33060:33060
environment:
MYSQL_ROOT_PASSWORD: Root@1234
MYSQL_DATABASE: conductor
MYSQL_USER: conductor
MYSQL_PASSWORD: Conductor@1234
MYSQL_INITDB_SKIP_TZINFO: NONE
LOGSPOUT: ignore
healthcheck:
test: [ "CMD-SHELL", 'mysqladmin ping' ]
interval: 60s
timeout: 30s
retries: 15
depends_on:
keycloak:
condition: service_healthy
mem_limit: "512000000"
volumes:
- mysql_data:/var/lib/mysql
conductor-boot:
image: zzzmahesh/conductorboot:latest
restart: on-failure
depends_on:
mysql:
condition: service_healthy
elasticsearch:
condition: service_healthy
keycloak:
condition: service_healthy
networks:
conductor-boot-nw:
aliases:
- conductor-boot
ports:
- 8080:8080
environment:
MYSQL_DATABASE_HOST: mysql
MYSQL_DATABASE_PORT: 3306
MYSQL_DATABASE: conductor
MYSQL_USER: conductor
MYSQL_PASSWORD: Conductor@1234
ELASTICSEARCH_URL: http://elasticsearch:9200
OAUTH2_USER_INFO_URL: http://keycloak:9990/auth/realms/conductor/protocol/openid-connect/userinfo
SPRING_PROFILES_ACTIVE: basic,mysql,external-elasticsearch,external-oauth2,security,conductor
healthcheck:
test: ["CMD", "curl","-I" ,"-XGET", "http://localhost:8080/api/health"]
interval: 60s
timeout: 30s
retries: 15
mem_limit: "1536000000"
kibana:
image: kibana:5.6.16
restart: on-failure
links:
- elasticsearch
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
LOGSPOUT: ignore
ports:
- 5601:5601
healthcheck:
test: [ "CMD", "curl","-I", "-XGET", "http://localhost:5601/status" ]
interval: 60s
timeout: 30s
retries: 15
depends_on:
elasticsearch:
condition: service_healthy
mem_limit: "512000000"
networks:
kibana-nw:
aliases:
- kibana
logstash:
image: logstash:5.6.8
restart: on-failure
environment:
STDOUT: "true"
LOGSPOUT: ignore
http.host: 0.0.0.0
ports:
- 5000:5000
- 9600:9600
links:
- elasticsearch
depends_on:
elasticsearch:
condition: service_healthy
command: 'logstash -e "input { udp { port => 5000 } } filter { grok { match => { message => \"\A\[%{LOGLEVEL:LOG_LEVEL}%{SPACE}]%{SPACE}%{TIMESTAMP_ISO8601:LOG_TIMESTAMP}%{SPACE}%{NOTSPACE:JAVA_CLASS}%{SPACE}-%{SPACE}%{GREEDYDATA:LOG_MESSAGE}\" } } } output { elasticsearch { hosts => elasticsearch } }"'
mem_limit: "512000000"
networks:
conductor-boot-nw:
aliases:
- logstash
logspout:
image: gliderlabs/logspout:v3
restart: on-failure
command: 'udp://logstash:5000'
links:
- logstash
volumes:
- '/var/run/docker.sock:/tmp/docker.sock'
environment:
LOGSPOUT: ignore
depends_on:
elasticsearch:
condition: service_healthy
kibana:
condition: service_started
logstash:
condition: service_started
mem_limit: "512000000"
networks:
conductor-boot-nw:
aliases:
- logspout
volumes:
postgres_data:
driver: local
driver_opts:
type: none
device: $PWD/container/persistence/postgres
o: bind
es_data:
driver: local
driver_opts:
type: none
device: $PWD/container/persistence/elasticsearch
o: bind
mysql_data:
driver: local
driver_opts:
type: none
device: $PWD/container/persistence/mysql
o: bind
networks:
keycloak-nw:
conductor-boot-nw:
kibana-nw: