Skip to content

Commit aa62022

Browse files
committed
fix(script): fix docker-compose for debugging
1 parent ec70611 commit aa62022

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

docker-compose-debug.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
hostname: zookeeper
66
container_name: zookeeper
77
ports:
8-
- "2181:2181"
8+
- "2181:2181"
99
environment:
1010
ZOOKEEPER_CLIENT_PORT: 2181
1111
ZOOKEEPER_TICK_TIME: 2000
@@ -17,10 +17,10 @@ services:
1717
hostname: broker
1818
container_name: broker
1919
depends_on:
20-
- cp-zookeeper
20+
- cp-zookeeper
2121
ports:
22-
- "29092:29092"
23-
- "9092:9092"
22+
- "29092:29092"
23+
- "9092:9092"
2424
environment:
2525
KAFKA_BROKER_ID: 1
2626
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
@@ -40,10 +40,10 @@ services:
4040
hostname: schema-registry
4141
container_name: schema-registry
4242
depends_on:
43-
- cp-zookeeper
44-
- cp-broker
43+
- cp-zookeeper
44+
- cp-broker
4545
ports:
46-
- "8081:8081"
46+
- "8081:8081"
4747
environment:
4848
SCHEMA_REGISTRY_HOST_NAME: schema-registry
4949
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
@@ -70,16 +70,19 @@ services:
7070
connect:
7171
image: streamthoughts/kafka-connect-file-pulse:master
7272
depends_on:
73-
- cp-broker
74-
- cp-schema-registry
75-
- traefik
73+
- cp-broker
74+
- cp-schema-registry
75+
- traefik
7676
ports:
77-
- "8083"
78-
- "8000"
77+
- "8083"
78+
- "8000"
79+
entrypoint: [ "/bin/bash", "-c", "CONNECT_REST_ADVERTISED_HOST_NAME=`hostname` /etc/confluent/docker/run" ]
80+
healthcheck:
81+
test: [ "CMD-SHELL", "CONNECT_REST_ADVERTISED_HOST_NAME=`hostname` /etc/confluent/docker/healthcheck.sh" ]
7982
environment:
8083
CONNECT_BOOTSTRAP_SERVERS: 'broker:29092'
81-
CONNECT_REST_ADVERTISED_HOST_NAME: connect
8284
CONNECT_REST_PORT: 8083
85+
CONNECT_LISTENERS: "HTTP://0.0.0.0:8083"
8386
CONNECT_GROUP_ID: compose-connect-group
8487
CONNECT_CONFIG_STORAGE_TOPIC: docker-connect-configs
8588
CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1

0 commit comments

Comments
 (0)