-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
264 lines (263 loc) · 7.8 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
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
version: '3.1'
services:
location:
image: piggy1/location:latest
container_name: piggyback-dev-runner-location-1
restart: always
ports:
- "8080:8080"
depends_on:
- mongo
- broker
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
offers:
image: piggy1/offers:latest
container_name: piggyback-dev-runner-offers-1
restart: always
ports:
- "8081:8081"
depends_on:
- mongo
- user
- location
- notification
- broker
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
events:
image: piggy1/events:latest
container_name: piggyback-dev-runner-events-1
restart: always
ports:
- "8082:8082"
depends_on:
- mongo
- broker
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
user:
image: piggy1/user:latest
container_name: piggyback-dev-runner-user-1
restart: always
ports:
- "8083:8083"
depends_on:
- mysql
- broker
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
invoice:
image: piggy1/invoice:latest
container_name: piggyback-dev-runner-invoice-1
restart: always
ports:
- "8084:8084"
depends_on:
- mysql
- events
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
partner:
image: piggy1/partner:latest
container_name: piggyback-dev-runner-partner-1
restart: always
ports:
- "8085:8085"
depends_on:
- mongo
- broker
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
notification:
image: piggy1/notification:latest
container_name: piggyback-dev-runner-notification-1
restart: always
ports:
- "8086:8086"
depends_on:
- broker
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
order:
image: piggy1/order:latest
container_name: piggyback-dev-runner-order-1
restart: always
ports:
- "8088:8088"
depends_on:
- mongo
- partner
- broker
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
portal:
image: piggy1/portal:latest
container_name: piggyback-dev-runner-portal-1
restart: always
ports:
- "5000:5000"
depends_on:
- user
- order
- partner
- invoice
mongo:
image: mongo:latest
container_name: piggyback-dev-runner-mongo-1
restart: always
volumes:
- mongo-data-vol:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
mongo-express:
image: mongo-express:latest
container_name: piggyback-dev-runner-mongo-express-1
restart: always
ports:
- "8001:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
depends_on:
- mongo
mysql:
image: mysql:latest
container_name: piggyback-dev-runner-mysql-1
restart: always
volumes:
- ./mysql-data-vol:/var/lib/mysql
- ./mysql-init-vol:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: 'password'
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: piggyback-dev-runner-phpmyadmin-1
environment:
- PMA_ARBITRARY=1
restart: always
ports:
- "8000:80"
depends_on:
- mysql
sample:
image: piggy1/sampleapp:latest
container_name: piggyback-dev-runner-sampleapp-1
restart: always
ports:
- "8087:8080"
depends_on:
- mongo
environment:
JASYPT_ENCRYPTOR_PASSWORD: piggyback
nginx:
image: nginx:stable-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./proxy-data-nginx/nginx:/etc/nginx/conf.d
- ./proxy-data-nginx/certbot/conf:/etc/letsencrypt
- ./proxy-data-nginx/certbot/www:/var/www/certbot
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
depends_on:
- location
- offers
- events
- user
- invoice
- partner
- notification
- portal
- order
certbot:
image: certbot/certbot
volumes:
- ./proxy-data-nginx/certbot/conf:/etc/letsencrypt
- ./proxy-data-nginx/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
zookeeper:
image: confluentinc/cp-zookeeper:5.3.1
hostname: zookeeper
container_name: piggyback-dev-runner-zookeeper-1
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
volumes:
- ./zookeeper-logs-vol:/var/lib/zookeeper/log
- ./zookeeper-data-vol:/var/lib/zookeeper/data
broker:
image: confluentinc/cp-enterprise-kafka:5.3.1
hostname: broker
container_name: piggyback-dev-runner-broker-1
depends_on:
- zookeeper
ports:
- "29092:29092"
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: broker:29092
CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'true'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
volumes:
- ./kafka-data-vol:/var/lib/kafka/data
control-center:
image: confluentinc/cp-enterprise-control-center:5.3.1
hostname: control-center
container_name: piggyback-dev-runner-control-center-1
depends_on:
- zookeeper
- broker
ports:
- "9021:9021"
environment:
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'broker:29092'
CONTROL_CENTER_ZOOKEEPER_CONNECT: 'zookeeper:2181'
CONTROL_CENTER_REPLICATION_FACTOR: 1
CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS: 1
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS: 1
CONFLUENT_METRICS_TOPIC_REPLICATION: 1
PORT: 9021
elasticsearch:
image: elasticsearch:7.4.2
user: root
environment:
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
ports:
- "9200:9200"
volumes:
- ./elastic-data-vol:/usr/share/elasticsearch/data
kibana:
image: kibana:7.4.2
ports:
- "5601:5601"
filebeat:
image: docker.elastic.co/beats/filebeat:7.4.2
user: root
volumes:
- ./filebeat-data-vol/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock
volumes:
mysql-data-vol:
mysql-init-vol:
mongo-data-vol:
proxy-data-nginx:
zookeeper-logs-vol:
zookeeper-data-vol:
kafka-data-vol:
elastic-data-vol:
filebeat-data-vol: