|
1 | 1 | services:
|
2 | 2 |
|
3 | 3 | elasticsearch:
|
4 |
| - image: docker.elastic.co/elasticsearch/elasticsearch:8.13.4 |
5 |
| - container_name: elasticsearch |
6 |
| - restart: unless-stopped |
| 4 | + image: 'docker.elastic.co/elasticsearch/elasticsearch:8.15.4' |
| 5 | + container_name: 'elasticsearch' |
| 6 | + restart: 'unless-stopped' |
7 | 7 | ports:
|
8 |
| - - "9200:9200" |
9 |
| - - "9300:9300" |
| 8 | + - '9200:9200' |
| 9 | + - '9300:9300' |
10 | 10 | environment:
|
11 |
| - discovery.type: single-node |
12 |
| - xpack.security.enabled: false |
13 |
| - ES_JAVA_OPTS: "-Xms512m -Xmx512m" |
| 11 | + - 'discovery.type=single-node' |
| 12 | + - 'xpack.security.enabled=false' |
| 13 | + - 'ES_JAVA_OPTS=-Xms512m -Xmx512m' |
14 | 14 | healthcheck:
|
15 |
| - test: "curl -f http://localhost:9200 || exit 1" |
| 15 | + test: 'curl -f http://localhost:9200 || exit 1' |
16 | 16 |
|
17 | 17 | zookeeper:
|
18 |
| - image: confluentinc/cp-zookeeper:7.6.1 |
19 |
| - container_name: zookeeper |
20 |
| - restart: unless-stopped |
| 18 | + image: 'confluentinc/cp-zookeeper:7.8.0' |
| 19 | + container_name: 'zookeeper' |
| 20 | + restart: 'unless-stopped' |
21 | 21 | ports:
|
22 |
| - - "2181:2181" |
| 22 | + - '2181:2181' |
23 | 23 | environment:
|
24 |
| - ZOOKEEPER_CLIENT_PORT: 2181 |
| 24 | + - 'ZOOKEEPER_CLIENT_PORT=2181' |
25 | 25 | healthcheck:
|
26 |
| - test: "echo stat | nc localhost $$ZOOKEEPER_CLIENT_PORT" |
| 26 | + test: 'echo stat | nc localhost $$ZOOKEEPER_CLIENT_PORT' |
27 | 27 |
|
28 | 28 | kafka:
|
29 |
| - image: confluentinc/cp-kafka:7.6.1 |
30 |
| - container_name: kafka |
31 |
| - restart: unless-stopped |
| 29 | + image: 'confluentinc/cp-kafka:7.8.0' |
| 30 | + container_name: 'kafka' |
| 31 | + restart: 'unless-stopped' |
32 | 32 | depends_on:
|
33 |
| - - zookeeper |
| 33 | + - 'zookeeper' |
34 | 34 | ports:
|
35 |
| - - "29092:29092" |
| 35 | + - '29092:29092' |
36 | 36 | environment:
|
37 |
| - KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
38 |
| - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT |
39 |
| - KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092 |
40 |
| - KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 |
| 37 | + - 'KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181' |
| 38 | + - 'KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT' |
| 39 | + - 'KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092' |
| 40 | + - 'KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1' |
41 | 41 | healthcheck:
|
42 | 42 | test: [ "CMD", "nc", "-z", "localhost", "9092" ]
|
43 | 43 |
|
44 | 44 | schema-registry:
|
45 |
| - image: confluentinc/cp-schema-registry:7.6.1 |
46 |
| - container_name: schema-registry |
47 |
| - restart: unless-stopped |
| 45 | + image: 'confluentinc/cp-schema-registry:7.8.0' |
| 46 | + container_name: 'schema-registry' |
| 47 | + restart: 'unless-stopped' |
48 | 48 | depends_on:
|
49 |
| - - kafka |
| 49 | + - 'kafka' |
50 | 50 | ports:
|
51 |
| - - "8081:8081" |
| 51 | + - '8081:8081' |
52 | 52 | environment:
|
53 |
| - SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: kafka:9092 |
54 |
| - SCHEMA_REGISTRY_HOST_NAME: schema-registry |
55 |
| - SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081 |
| 53 | + - 'SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS=kafka:9092' |
| 54 | + - 'SCHEMA_REGISTRY_HOST_NAME=schema-registry' |
| 55 | + - 'SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8081' |
56 | 56 | healthcheck:
|
57 |
| - test: "curl -f http://localhost:8081 || exit 1" |
| 57 | + test: 'curl -f http://localhost:8081 || exit 1' |
58 | 58 |
|
59 | 59 | schema-registry-ui:
|
60 |
| - image: landoop/schema-registry-ui:0.9.5 |
61 |
| - container_name: kafka-schema-registry-ui |
| 60 | + image: 'landoop/schema-registry-ui:0.9.5' |
| 61 | + container_name: 'kafka-schema-registry-ui' |
62 | 62 | depends_on:
|
63 |
| - - schema-registry |
| 63 | + - 'schema-registry' |
64 | 64 | ports:
|
65 |
| - - "8001:8000" |
| 65 | + - '8001:8000' |
66 | 66 | environment:
|
67 |
| - SCHEMAREGISTRY_URL: http://schema-registry:8081 |
68 |
| - PROXY: "true" |
| 67 | + - 'SCHEMAREGISTRY_URL=http://schema-registry:8081' |
| 68 | + - 'PROXY=true' |
69 | 69 | healthcheck:
|
70 |
| - test: "wget --quiet --tries=1 --spider http://localhost:8000 || exit 1" |
| 70 | + test: 'wget --quiet --tries=1 --spider http://localhost:8000 || exit 1' |
71 | 71 |
|
72 | 72 | kafka-rest-proxy:
|
73 |
| - image: confluentinc/cp-kafka-rest:7.6.1 |
74 |
| - container_name: kafka-rest-proxy |
75 |
| - restart: unless-stopped |
| 73 | + image: 'confluentinc/cp-kafka-rest:7.8.0' |
| 74 | + container_name: 'kafka-rest-proxy' |
| 75 | + restart: 'unless-stopped' |
76 | 76 | depends_on:
|
77 |
| - - zookeeper |
78 |
| - - kafka |
| 77 | + - 'zookeeper' |
| 78 | + - 'kafka' |
79 | 79 | ports:
|
80 |
| - - "8082:8082" |
| 80 | + - '8082:8082' |
81 | 81 | environment:
|
82 |
| - KAFKA_REST_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092 |
83 |
| - KAFKA_REST_ZOOKEEPER_CONNECT: zookeeper:2181 |
84 |
| - KAFKA_REST_HOST_NAME: kafka-rest-proxy |
85 |
| - KAFKA_REST_LISTENERS: http://0.0.0.0:8082 |
86 |
| - KAFKA_REST_CONSUMER_REQUEST_TIMEOUT_MS: 30000 |
| 82 | + - 'KAFKA_REST_BOOTSTRAP_SERVERS=PLAINTEXT://kafka:9092' |
| 83 | + - 'KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper:2181' |
| 84 | + - 'KAFKA_REST_HOST_NAME=kafka-rest-proxy' |
| 85 | + - 'KAFKA_REST_LISTENERS=http://0.0.0.0:8082' |
| 86 | + - 'KAFKA_REST_CONSUMER_REQUEST_TIMEOUT_MS=30000' |
87 | 87 | healthcheck:
|
88 |
| - test: "curl -f http://localhost:8082 || exit 1" |
| 88 | + test: 'curl -f http://localhost:8082 || exit 1' |
89 | 89 |
|
90 | 90 | kafka-topics-ui:
|
91 |
| - image: landoop/kafka-topics-ui:0.9.4 |
92 |
| - container_name: kafka-topics-ui |
93 |
| - restart: unless-stopped |
| 91 | + image: 'landoop/kafka-topics-ui:0.9.4' |
| 92 | + container_name: 'kafka-topics-ui' |
| 93 | + restart: 'unless-stopped' |
94 | 94 | depends_on:
|
95 |
| - - kafka-rest-proxy |
| 95 | + - 'kafka-rest-proxy' |
96 | 96 | ports:
|
97 |
| - - "8085:8000" |
| 97 | + - '8085:8000' |
98 | 98 | environment:
|
99 |
| - KAFKA_REST_PROXY_URL: http://kafka-rest-proxy:8082 |
100 |
| - PROXY: "true" |
| 99 | + - 'KAFKA_REST_PROXY_URL=http://kafka-rest-proxy:8082' |
| 100 | + - 'PROXY=true' |
101 | 101 | healthcheck:
|
102 |
| - test: "wget --quiet --tries=1 --spider http://localhost:8000 || exit 1" |
| 102 | + test: 'wget --quiet --tries=1 --spider http://localhost:8000 || exit 1' |
103 | 103 |
|
104 | 104 | kafka-manager:
|
105 |
| - image: hlebalbau/kafka-manager:3.0.0.5 |
106 |
| - container_name: kafka-manager |
107 |
| - restart: unless-stopped |
| 105 | + image: 'hlebalbau/kafka-manager:3.0.0.5' |
| 106 | + container_name: 'kafka-manager' |
| 107 | + restart: 'unless-stopped' |
108 | 108 | depends_on:
|
109 |
| - - zookeeper |
| 109 | + - 'zookeeper' |
110 | 110 | ports:
|
111 |
| - - "9001:9000" |
| 111 | + - '9001:9000' |
112 | 112 | environment:
|
113 |
| - ZK_HOSTS: zookeeper:2181 |
114 |
| - APPLICATION_SECRET: "random-secret" |
115 |
| - command: -Dpidfile.path=/dev/null |
| 113 | + - 'ZK_HOSTS=zookeeper:2181' |
| 114 | + - 'APPLICATION_SECRET=random-secret' |
| 115 | + command: '-Dpidfile.path=/dev/null' |
116 | 116 | healthcheck:
|
117 |
| - test: "curl -f http://localhost:9000 || exit 1" |
| 117 | + test: 'curl -f http://localhost:9000 || exit 1' |
118 | 118 |
|
119 | 119 | zipkin:
|
120 |
| - image: openzipkin/zipkin:2.24.3 |
121 |
| - container_name: zipkin |
122 |
| - restart: unless-stopped |
| 120 | + image: 'openzipkin/zipkin:3.4.1' |
| 121 | + container_name: 'zipkin' |
| 122 | + restart: 'unless-stopped' |
123 | 123 | ports:
|
124 |
| - - "9411:9411" |
| 124 | + - '9411:9411' |
125 | 125 | healthcheck:
|
126 | 126 | test: [ "CMD", "nc", "-z", "localhost", "9411" ]
|
0 commit comments