-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose-base.yaml
223 lines (201 loc) · 5.66 KB
/
docker-compose-base.yaml
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
version: '2'
services:
redis:
image: redis:5.0.14
ports:
- 6379:6379
redis-node-0:
image: docker.io/bitnami/redis-cluster:7.2
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=172.30.0.2:6379 172.30.0.3:6379 172.30.0.4:6379'
- 'REDIS_CLUSTER_CREATOR=yes'
- 'REDIS_CLUSTER_REPLICAS=0'
- 'BITNAMI_DEBUG=1'
- 'REDIS_CLUSTER_SLEEP_BEFORE_DNS_LOOKUP=10'
ports:
- 6380:6379
networks:
redis-cluster-network:
ipv4_address: 172.30.0.2
redis-node-1:
image: docker.io/bitnami/redis-cluster:7.2
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=172.30.0.2:6379 172.30.0.3:6379 172.30.0.4:6379'
ports:
- 6381:6379
networks:
redis-cluster-network:
ipv4_address: 172.30.0.3
redis-node-2:
image: docker.io/bitnami/redis-cluster:7.2
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=172.30.0.2:6379 172.30.0.3:6379 172.30.0.4:6379'
ports:
- 6382:6379
networks:
redis-cluster-network:
ipv4_address: 172.30.0.4
mongo:
image: mongo:4.1.13
ports:
- 27017:27017
couchbase:
image: couchbase/server:7.1.4
hostname: couchbase
ports:
- '8091-8096:8091-8096'
- '11210:11210'
# Elasticsearch 7 compatible with client v7
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
# ports:
# - 9200:9200
# environment:
# discovery.type: single-node
# ES_JAVA_OPTS: "-Xms500m -Xmx500m"
# Elasticsearch 8 compatible with client v7 & v8
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.6.1
ports:
- 9200:9200
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms500m -Xmx500m"
xpack.security.enabled: 'false'
zookeeper:
image: zookeeper:3.9.2
platform: linux/amd64
ports:
- 2181:2181
kafka:
image: wurstmeister/kafka:2.13-2.8.1
platform: linux/amd64
ports:
- 9092:9092
- 29092:29092
depends_on:
- "zookeeper"
hostname: kafka0
environment:
KAFKA_LISTENERS: EXTERNAL://:9092,PLAINTEXT://:29092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka0:29092,EXTERNAL://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
# Leave the internal listener mapped as PLAINTEXT to avoid issues in schema-registry:
# https://github.com/confluentinc/schema-registry/issues/648#issuecomment-398032429
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_CREATE_TOPICS: "test:1:1,test-topic-1:1:1,test-topic-2:1:1,test-batch-topic-1:1:1,test-batch-topic-2:1:1,rdkafka-topic:1:1,kafka-avro-topic:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./bin:/nodejs-collector-bin
command: ["/nodejs-collector-bin/wait-for-it.sh", "-s", "-t", "120", "zookeeper:2181", "--", "start-kafka.sh"]
schema-registry:
image: confluentinc/cp-schema-registry:4.1.0
platform: linux/amd64
hostname: schema-registry
depends_on:
- "kafka"
ports:
- "8081:8081"
environment:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: "zookeeper:2181"
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: "PLAINTEXT://kafka0:29092"
SCHEMA_REGISTRY_HOST_NAME: schema-registry
mysql:
image: mysql:8.0.1
platform: linux/amd64
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: nodepw
MYSQL_DATABASE: nodedb
MYSQL_USER: node
MYSQL_PASSWORD: nodepw
MYSQL_ROOT_HOST: 0.0.0.0
volumes:
- ./packages/collector/test/tracing/database/mysql/conf.d:/etc/mysql/conf.d
postgres:
image: postgres:10.5
ports:
- 5432:5432
environment:
POSTGRES_USER: node
POSTGRES_PASSWORD: nodepw
POSTGRES_DB: nodedb
mssql:
image: mcr.microsoft.com/mssql/server:2022-RC1-ubuntu-20.04
platform: linux/amd64
ports:
- 1433:1433
environment:
ACCEPT_EULA: Y
SA_PASSWORD: stanCanHazMsSQL1
MSSQL_PID: Express
rabbitmq:
image: rabbitmq:3.7.8-alpine
ports:
- 5671:5671
- 5672:5672
nats:
image: nats:2.9.14-linux
ports:
- 4222:4222
- 6222:6222
- 8222:8222
nats-streaming:
image: nats-streaming:0.25.3-linux
command: -p 4223 -m 8223
ports:
- 4223:4223
- 8223:8223
memcached:
image: memcached:1.6.9
ports:
- 11211:11211
# https://hub.docker.com/r/ibmcom/db2
db2:
image: ibmcom/db2
platform: linux/amd64
privileged: true
ports:
- 58885:50000
environment:
- PERSISTENT_HOME=false
- DBNAME=nodedb
- BLU=false
- HADR_ENABLED=false
- ENABLE_ORACLE_COMPATIBILITY=false
- UPDATEAVAIL=NO
- SAMPLEDB=false
- REPODB=false
- IS_OSXFS=false
- LICENSE=accept
- DB2INSTANCE=node
- DB2INST1_PASSWORD=nodepw
- DB2_CREATE_DB_ON_PATH=true
- STARTUP_MODE=restoreIfNotExists
volumes:
- ./db2/database:/database
- ./db2/db2_data:/db2_data
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack:latest
hostname: localstack
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # external services port range
environment:
- DEBUG=${DEBUG-}
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
redis-cluster-network:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16