티스토리 뷰
728x90
version: "3.9"
services:
zookeeper:
platform: linux/x86_64
image: wurstmeister/zookeeper
container_name: seunggabi-zookeeper
restart: always
ports:
- 2181:2181
networks:
seunggabi-net:
ipv4_address: 172.16.240.17
kafka:
platform: linux/x86_64
image: confluentinc/cp-kafka
container_name: seunggabi-kafka
restart: always
depends_on:
- zookeeper
ports:
- 9092:9092
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://seunggabi-kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: true
KAFKA_NUM_PARTITIONS: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
seunggabi-net:
ipv4_address: 172.16.240.18
schema-registry:
platform: linux/x86_64
image: confluentinc/cp-schema-registry
container_name: seunggabi-schema-registry
restart: always
depends_on:
- zookeeper
- kafka
environment:
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://localhost:9092
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8085
SCHEMA_REGISTRY_LOG4J_ROOT_LOGLEVEL: INFO
ports:
- 8085:8085
networks:
seunggabi-net:
ipv4_address: 172.16.240.19
links:
- kafka
extra_hosts:
- localhost:172.16.240.18
akhq:
image: tchiotludo/akhq
container_name: seunggabi-akhq
restart: always
environment:
AKHQ_CONFIGURATION: |
akhq:
connections:
docker-kafka:
properties:
bootstrap.servers: localhost:9092
schema-registry:
url: http://schema-registry:8085
ports:
- 9999:8080
depends_on:
- zookeeper
- kafka
- schema-registry
networks:
seunggabi-net:
ipv4_address: 172.16.240.16
links:
- kafka
- schema-registry
extra_hosts:
- localhost:172.16.240.18
- schema-registry:172.16.240.19
networks:
seunggabi-net:
ipam:
driver: default
config:
- subnet: 172.16.240.0/24
How To Use 카프카 도커 이미지
도커 이미지 쓸거면 이거 쓰기이거 있어야 외부 주소로 노출해서 클라이언트가 연결시킴 -> 안그러면 내부 호스트 주소로 연결돼는데 만약에 도달 못하면 그게 문제가 되는것일단 LISTENER이 카프
velog.io
728x90
'공부' 카테고리의 다른 글
[AWS] SES (email) (0) | 2022.11.07 |
---|---|
[flink] basic (0) | 2022.11.03 |
[jq] jq -r ".values[].name" && cURL cookie (0) | 2022.11.03 |
[kotlin] toObject, toJson (0) | 2022.11.02 |
[bitbucket] default description & checkbox not working in description & team mention not working... (0) | 2022.11.02 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- wlw
- 테슬라 추천
- 책그림
- 연애학개론
- 팔로워 수 세기
- 메디파크 내과 전문의 의학박사 김영수
- 모델 Y 레퍼럴
- 할인
- 테슬라 리퍼럴 코드 생성
- 테슬라 리퍼럴 코드 혜택
- 테슬라 레퍼럴 코드 확인
- 어떻게 능력을 보여줄 것인가?
- 인스타그램
- 테슬라 크레딧 사용
- 테슬라 리퍼럴 코드
- 유투브
- 레퍼럴
- 개리마커스
- 모델y
- 테슬라 레퍼럴 적용 확인
- 테슬라
- 클루지
- COUNT
- Kluge
- 김달
- follower
- Bot
- 테슬라 레퍼럴
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함