Skip to content

Commit

Permalink
adjust docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
IISI-1204003 committed May 2, 2022
1 parent 50bd1f3 commit c09b9fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chapter-10/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ services:

schema-registry:
image: confluentinc/cp-schema-registry:6.0.6
hostname: schema-registry
container_name: schema-registry
depends_on:
- zookeeper
- kafka
ports:
- "8081:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
Expand Down
4 changes: 4 additions & 0 deletions chapter-11/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ services:
TZ: Asia/Taipei

schema-registry:
hostname: schema-registry
container_name: schema-registry
image: confluentinc/cp-schema-registry:6.0.6
depends_on:
- zookeeper
- kafka
ports:
- "8081:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
Expand Down

0 comments on commit c09b9fb

Please sign in to comment.