Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ services:
DB_NAME: ${DB_NAME}
DB_PASSWORD: ${DB_PASSWORD}
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL}
restart: always # 컨테이너가 중단되었을 때 재시작 설정
depends_on:
- kafka
restart: on-failure

zookeeper:
image: confluentinc/cp-zookeeper:latest
Expand All @@ -37,6 +39,7 @@ services:
ZOOKEEPER_CLIENT_PORT: 2181
ports:
- "2181:2181"
restart: always

kafka:
image: confluentinc/cp-kafka:latest
Expand All @@ -50,4 +53,5 @@ services:
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper
- zookeeper
restart: always
Loading