Skip to content

Commit

Permalink
script: update debug.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Mar 28, 2022
1 parent d17298f commit a8ddbf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ echo -e "\n🐳 Starting Kafka Docker-Compose stack..."
(cd "$BASEDIR"; docker-compose -f ./docker-compose-debug.yml up -d --scale connect=$SCALE)

echo -e "\n⏳ Waiting for Kafka Connect..."
CONNECT_URL=http://localhost:80/connectors
CONNECT_URL=http://localhost:8083/connectors
while [ $(curl -s -o /dev/null -w %{http_code} ${CONNECT_URL}) != 200 ]; do
echo -e $(date) "\tKafka Connect HTTP state: " $(curl -k -s -o /dev/null -w %{http_code} ${CONNECT_URL}) " (waiting for 200)"
sleep 2
Expand Down
6 changes: 3 additions & 3 deletions docker-compose-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ services:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.kafka-connect.address=:8083"
ports:
- "8080:8080"
- "80:80"
- "8083:8083"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
Expand Down Expand Up @@ -133,7 +133,7 @@ services:
- "traefik.enable=true"
- "traefik.http.services.connect.loadbalancer.server.port=8083"
- "traefik.http.routers.connect.rule=PathPrefix(`/`)"
- "traefik.http.routers.connect.entrypoints=web"
- "traefik.http.routers.connect.entrypoints=kafka-connect"
networks:
- kafka-connect

Expand Down

0 comments on commit a8ddbf1

Please sign in to comment.