-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-env.yml
218 lines (204 loc) · 6.07 KB
/
docker-compose-env.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
version: '3.7'
services:
influxdb:
container_name: nussknacker_influxdb
hostname: influxdb
image: influxdb:${INFLUXDB_VERSION-1.8.4-alpine}
ports:
- "3086:8086"
environment:
INFLUXDB_DB: esp
volumes:
- ./influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
- storage_influxdb:/var/lib/influxdb
telegraf:
container_name: nussknacker_telegraf
image: telegraf:${TELEGRAF_VERSION-1.14.1-alpine}
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
zookeeper:
container_name: nussknacker_zookeeper
image: zookeeper:${ZOOKEEPER_VERSION-3.5.5}
environment:
ZOO_MY_ID: 1
JVMFLAGS: "-Xms64m -Xmx128m"
volumes:
- storage_zookeeper_datalog:/datalog
- storage_zookeeper_data:/data
kafka:
container_name: nussknacker_kafka
image: ${KAFKA_REPOSITORY-wurstmeister/kafka}:${KAFKA_VERSION-2.12-2.3.0}
ports:
- "3032:3032"
environment:
HOSTNAME_COMMAND: "docker info | grep ^Name: | cut -d' ' -f 2"
KAFKA_LISTENERS: INTERNAL://0.0.0.0:9092,EXTERNAL://0.0.0.0:3032
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://localhost:3032
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "processedEvents:1:1"
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_HEAP_OPTS: -Xms128m -Xmx512m
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- storage_kafka_data:/kafka
depends_on:
- zookeeper
akhq:
container_name: nussknacker_akhq
image: tchiotludo/akhq:${AKHQ_VERSION-0.20.0}
environment:
AKHQ_CONFIGURATION: |
micronaut:
server:
context-path: /akhq
akhq:
connections:
nussknacker:
properties:
bootstrap.servers: "kafka:9092"
schema-registry:
url: "http://schemaregistry:8081"
ports:
- 8085:8080
links:
- kafka
- schemaregistry
schemaregistry:
container_name: nussknacker_schemaregistry
image: confluentinc/cp-schema-registry:${SCHEMA_REGISTRY_VERSION-5.5.7}
environment:
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_HOST_NAME: schemaregistry
ports:
- "3082:8081"
depends_on:
- zookeeper
- kafka
#schema registry needs running kafka, depends_on is not enough, so let's restart when schema registry fails...
restart: on-failure
jobmanager:
container_name: nussknacker_jobmanager
build:
context: flink
args:
BASE_IMAGE: flink:${FLINK_VERSION-1.14.0}-scala_${SCALA_VERSION-2.12}-${JAVA_VERSION-java11}
ports:
- "3031:8081"
entrypoint: /flink-entrypoint.sh
command: jobmanager
environment:
# those environment variables are duplicated here and in designer service, in case of setup with designer run in other network than flink
KAFKA_ADDRESS: kafka:9092
SCHEMA_REGISTRY_URL: http://schemaregistry:8081
OPENAPI_SERVICE_URL: http://customerservice:5000
TASK_MANAGER_NUMBER_OF_TASK_SLOTS: 40
depends_on:
- zookeeper
- kafka
- influxdb
volumes:
- ./flink/flink-conf.yaml:/tmp/flink-conf.yaml
- ./flink/flink-entrypoint.sh:/flink-entrypoint.sh
- storage_flink:/opt/flink/data
taskmanager:
container_name: nussknacker_taskmanager
build:
context: flink
args:
BASE_IMAGE: flink:${FLINK_VERSION-1.14.0}-scala_${SCALA_VERSION-2.12}-${JAVA_VERSION-java11}
ports:
- "3063:9069"
- "9009:9009"
- "9008:9008"
entrypoint: /flink-entrypoint.sh
command: taskmanager
environment:
TASK_MANAGER_NUMBER_OF_TASK_SLOTS: 40
depends_on:
- zookeeper
- kafka
- jobmanager
- influxdb
volumes:
- ./flink/flink-conf.yaml:/tmp/flink-conf.yaml
- ./flink/flink-entrypoint.sh:/flink-entrypoint.sh
- storage_flink:/opt/flink/data
ulimits:
nproc: 70000
nofile:
soft: 70000
hard: 70000
grafana:
container_name: nussknacker_grafana
image: grafana/grafana:${GRAFANA_VERSION-8.0.6}
volumes:
- ./grafana:/etc/grafana/provisioning
- ./grafana/dashboards:/var/lib/grafana/dashboards
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:/grafana
- GF_SECURITY_ALLOW_EMBEDDING=true
depends_on:
- influxdb
ignite:
container_name: nussknacker_ignite
image: apacheignite/ignite:${IGNITE_VERSION-2.10.0}
ports:
- 10800:10800
- 9020:9020
volumes:
- ./ignite:/user_config
- storage_ignite:/persistent_storage
environment:
- OPTION_LIBS=ignite-rest-http,ignite-indexing
- IGNITE_WORK_DIR=/persistent_storage
- CONFIG_URI=file:///user_config/ignite-config.xml
nifi:
container_name: nussknacker_nifi
build:
context: nifi
args:
BASE_IMAGE: apache/nifi:${NIFI_VERSION-1.12.1}
entrypoint: [ "/opt/nifi/nifi-current/rafm_conf/start.sh" ]
ports:
- 3080:8080
volumes:
- ./nifi/conf:/opt/nifi/nifi-current/rafm_conf
depends_on:
- kafka
- schemaregistry
- ignite
nginx:
container_name: nussknacker_nginx
image: nginx:${NGINX_VERSION-1.17.6}
ports:
- "${NGINX_PORT-8081}:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
restart: on-failure
depends_on:
- zookeeper
- influxdb
- kafka
- jobmanager
- taskmanager
- grafana
volumes:
storage_zookeeper_datalog:
name: nussknacker_storage_zookeeper_datalog
storage_zookeeper_data:
name: nussknacker_storage_zookeeper_data
storage_kafka_data:
name: nussknacker_storage_kafka_data
storage_flink:
name: nussknacker_storage_flink
storage_influxdb:
name: nussknacker_storage_influxdb
storage_ignite:
name: nussknacker_storage_ignite
networks:
default:
name: nussknacker_network