1
1
version : " 3"
2
2
services :
3
+
3
4
elasticsearch :
4
5
container_name : nr_node_elastic
5
6
image : docker.elastic.co/elasticsearch/elasticsearch:8.8.0
@@ -21,11 +22,45 @@ services:
21
22
interval : 30s
22
23
timeout : 10s
23
24
retries : 5
25
+
26
+ # Kafka setup based on the e2e tests in node-rdkafka. Needs both the
27
+ # `zookeeper` and `kafka` services.
28
+ zookeeper :
29
+ container_name : nr_node_kafka_zookeeper
30
+ image : confluentinc/cp-zookeeper
31
+ ports :
32
+ - ' 2181:2181'
33
+ environment :
34
+ ZOOKEEPER_CLIENT_PORT : 2181
35
+ ZOOKEEPER_TICK_TIME : 2000
36
+ kafka :
37
+ container_name : nr_node_kafka
38
+ image : confluentinc/cp-kafka
39
+ links :
40
+ - zookeeper
41
+ ports :
42
+ - ' 9092:9092'
43
+ healthcheck :
44
+ test : /usr/bin/kafka-cluster cluster-id --bootstrap-server localhost:9092 || exit 1
45
+ interval : 1s
46
+ timeout : 60s
47
+ retries : 60
48
+ environment :
49
+ KAFKA_BROKER_ID : 1
50
+ KAFKA_ZOOKEEPER_CONNECT : ' zookeeper:2181'
51
+ KAFKA_ADVERTISED_LISTENERS : ' PLAINTEXT://localhost:9092'
52
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : 1
53
+ KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS : 0
54
+ KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR : 1
55
+ KAFKA_DEFAULT_REPLICATION_FACTOR : 1
56
+ KAFKA_TRANSACTION_STATE_LOG_MIN_ISR : 1
57
+
24
58
memcached :
25
59
container_name : nr_node_memcached
26
60
image : memcached
27
61
ports :
28
62
- " 11211:11211"
63
+
29
64
mongodb_3 :
30
65
container_name : nr_node_mongodb
31
66
platform : linux/amd64
@@ -37,6 +72,7 @@ services:
37
72
interval : 1s
38
73
timeout : 10s
39
74
retries : 30
75
+
40
76
mongodb_5 :
41
77
container_name : nr_node_mongodb_5
42
78
image : library/mongo:5
@@ -47,6 +83,7 @@ services:
47
83
interval : 1s
48
84
timeout : 10s
49
85
retries : 30
86
+
50
87
mysql :
51
88
container_name : nr_node_mysql
52
89
platform : linux/amd64
@@ -60,6 +97,7 @@ services:
60
97
interval : 1s
61
98
timeout : 10s
62
99
retries : 30
100
+
63
101
redis :
64
102
container_name : nr_node_redis
65
103
image : redis
@@ -70,6 +108,7 @@ services:
70
108
interval : 1s
71
109
timeout : 10s
72
110
retries : 30
111
+
73
112
cassandra :
74
113
container_name : nr_node_cassandra
75
114
platform : linux/amd64
@@ -80,13 +119,15 @@ services:
80
119
test : [ "CMD", "cqlsh", "-u cassandra", "-p cassandra"]
81
120
interval : 5s
82
121
timeout : 10s
83
- retries : 6
122
+ retries : 6
123
+
84
124
# pg 9.2 has built in healthcheck
85
125
pg :
86
126
container_name : nr_node_postgres
87
127
image : postgres:9.2
88
128
ports :
89
129
- " 5432:5432"
130
+
90
131
pg_prisma :
91
132
container_name : nr_node_postgres_prisma
92
133
image : postgres:15
@@ -100,6 +141,7 @@ services:
100
141
interval : 1s
101
142
timeout : 10s
102
143
retries : 30
144
+
103
145
rmq :
104
146
container_name : nr_node_rabbit
105
147
image : rabbitmq:3
0 commit comments