-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
212 lines (199 loc) · 5.95 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
---
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
KAFKA_LOG4J_ROOT_LOGLEVEL: 'ERROR'
KAFKA_TOOLS_LOG4J_LOGLEVEL: 'ERROR'
broker:
image: confluentinc/cp-enterprise-kafka
hostname: broker
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://broker:9092'
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
KAFKA_LOG4J_ROOT_LOGLEVEL: 'ERROR'
KAFKA_TOOLS_LOG4J_LOGLEVEL: 'ERROR'
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: broker:9092
CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'true'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
schema_registry:
image: confluentinc/cp-schema-registry
hostname: schema_registry
depends_on:
- zookeeper
- broker
ports:
- "8081:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema_registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_METHODS: 'GET,POST,PUT,OPTIONS'
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_ORIGIN: '*'
SCHEMA_LOG4J_ROOT_LOGLEVEL: 'ERROR'
SCHEMA_TOOLS_LOG4J_LOGLEVEL: 'ERROR'
connect:
image: confluentinc/cp-kafka-connect
hostname: connect
depends_on:
- zookeeper
- broker
- schema_registry
ports:
- "8083:8083"
environment:
CONNECT_BOOTSTRAP_SERVERS: 'broker:9092'
CONNECT_REST_ADVERTISED_HOST_NAME: connect
CONNECT_REST_PORT: 8083
CONNECT_GROUP_ID: compose-connect-group
CONNECT_CONFIG_STORAGE_TOPIC: docker-connect-configs
CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1
CONNECT_OFFSET_FLUSH_INTERVAL_MS: 10000
CONNECT_OFFSET_STORAGE_TOPIC: docker-connect-offsets
CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: 1
CONNECT_STATUS_STORAGE_TOPIC: docker-connect-status
CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: 1
CONNECT_KEY_CONVERTER: io.confluent.connect.avro.AvroConverter
CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL: 'http://schema_registry:8081'
CONNECT_VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter
CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: 'http://schema_registry:8081'
CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_ZOOKEEPER_CONNECT: 'zookeeper:2181'
CONNECT_PLUGIN_PATH: '/usr/share/java'
CONNECT_LOG4J_ROOT_LOGLEVEL: 'ERROR'
CONNECT_TOOLS_LOG4J_LOGLEVEL: 'ERROR'
postgres:
image: postgres
hostname: postgres
depends_on:
- connect
ports:
- "5432:5432"
environment:
POSTGRES_USER: 'username'
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'dwh'
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.3
hostname: elasticsearch
depends_on:
- connect
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: 'single-node'
xpack.security.enabled: 'false'
connect-ui:
image: landoop/kafka-connect-ui
hostname: connect-ui
depends_on:
- connect
ports:
- "8084:8000"
environment:
CONNECT_URL: 'http://connect:8083'
control-center:
image: confluentinc/cp-enterprise-control-center
hostname: control-center
depends_on:
- zookeeper
- broker
- schema_registry
- connect
ports:
- "9021:9021"
environment:
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'broker:9092'
CONTROL_CENTER_ZOOKEEPER_CONNECT: 'zookeeper:2181'
CONTROL_CENTER_CONNECT_CLUSTER: 'connect:8083'
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
CONTROL_CENTER_LOG4J_ROOT_LOGLEVEL: 'ERROR'
CONTROL_CENTER_TOOLS_LOG4J_LOGLEVEL: 'ERROR'
schema-registry-ui:
image: landoop/schema-registry-ui
hostname: schema_registry_ui
depends_on:
- schema_registry
ports:
- "8000:8000"
environment:
SCHEMAREGISTRY_URL: 'http://schema_registry:8081'
PROXY: "true"
kafka-rest:
image: confluentinc/cp-kafka-rest
hostname: kafka-rest
depends_on:
- broker
- schema_registry
ports:
- "10000:10000"
environment:
KAFKA_REST_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_REST_HOST_NAME: 'kafka-rest'
KAFKA_REST_LISTENERS: 'http://0.0.0.0:10000'
KAFKA_REST_SCHEMA_REGISTRY_URL: 'http://schema_registry:8081'
KAFKA_REST_LOG4J_ROOT_LOGLEVEL: 'ERROR'
KAFKA_REST_TOOLS_LOG4J_LOGLEVEL: 'ERROR'
kafka-topics-ui:
image: landoop/kafka-topics-ui
hostname: kafka_topics_ui
depends_on:
- broker
ports:
- "8001:8000"
environment:
KAFKA_REST_PROXY_URL: 'http://kafka-rest:10000'
PROXY: "true"
nginx:
build: docker/nginx
ports:
- 8080:80
volumes_from:
- app
app:
command: "true"
image: alpine:3.4
depends_on:
- broker
volumes:
- ./php-microservice:/var/www/app
php:
build: docker/php
expose:
- 9000
volumes:
- composer-cache:/composer/cache
volumes_from:
- app
akka-stream:
build: docker/scala-akka-stream
volumes:
- ./scala-akka-stream:/scala-akka-stream
depends_on:
- broker
- schema_registry
volumes:
composer-cache:
driver: local