-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
90 lines (90 loc) · 3.25 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
services:
elasticsearch:
image: elasticsearch:2.4.2
ports:
- "9300:9300"
- "9200:9200"
environment:
- "discovery.type=single-node"
cmdelasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0
ports:
# Set alternative ports to prevent port clash.
- 10300:9300
- 10200:9200
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
sitewideelasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
ports:
# Set alternative ports to prevent port clash.
- 11300:9300
- 11200:9200
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.type=single-node"
highcharts:
image: onsdigital/highcharts-export-node
ports:
- "9999:8080"
mongodb:
image: mongo:3.6
ports:
- 27017:27017
zookeeper-1:
image: confluentinc/cp-zookeeper:6.0.0
expose:
- 2181
environment:
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka-1:
image: confluentinc/cp-kafka:6.0.0
expose:
- 19092 # exposed port to docker network so that the broker is reachable by other brokers, value needs to match PLAINTEXT port
ports:
- 9092:9092 # map localhost port so that broker is reachable from the host, values needs to match PLAINTEXT_HOST port
depends_on:
- zookeeper-1
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper-1:2181
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 2
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-1:19092,PLAINTEXT_HOST://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
kafka-2:
image: confluentinc/cp-kafka:6.0.0
expose:
- 19092 # exposed port to docker network so that the broker is reachable by other brokers, value needs to match PLAINTEXT port
ports:
- 9093:9093 # map localhost port so that broker is reachable from the host, values needs to match PLAINTEXT_HOST port
depends_on:
- zookeeper-1
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper-1:2181
KAFKA_BROKER_ID: 2
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 2
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-2:19092,PLAINTEXT_HOST://localhost:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
kafka-3:
image: confluentinc/cp-kafka:6.0.0
expose:
- 19092 # exposed port to docker network so that the broker is reachable by other brokers, value needs to match PLAINTEXT port
ports:
- 9094:9094 # map localhost port so that broker is reachable from the host, values needs to match PLAINTEXT_HOST port
depends_on:
- zookeeper-1
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper-1:2181
KAFKA_BROKER_ID: 3
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 2
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-3:19092,PLAINTEXT_HOST://localhost:9094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
mathjax:
image: onsdigital/mathjax-api:2024-10-10
ports:
- "8888:8080"