Skip to content

Commit

Permalink
Add heathchecks to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Mar 7, 2023
1 parent 3856893 commit 0730c50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,18 @@ services:
- 8081:8081
depends_on:
- kafka
- zookeeper
environment:
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_LISTENERS: http://schema-registry:8081,http://localhost:8081
healthcheck: {test: curl -f localhost:8081, interval: 1s, start_period: 120s}

datagen:
build: .
container_name: datagen
depends_on:
- kafka
- schema-registry
schema-registry: {condition: service_healthy}
environment:
SCHEMA_REGISTRY_URL: http://schema-registry:8081
KAFKA_BROKERS: kafka:9092
Expand Down

0 comments on commit 0730c50

Please sign in to comment.