게시글
질문&답변
2024.02.24
docker-compose -f docker-compose-single-broker.yml up -d
드디어 해결했습니다.version: '2' services: zookeeper: image: wurstmeister/zookeeper ports: - "2181:2181" networks: my-network: ipv4_address: 172.18.0.100 kafka: # build: . image: wurstmeister/kafka ports: - "9092:9092" environment: KAFKA_ADVERTISED_HOST_NAME: 172.18.0.101 KAFKA_CREATE_TOPICS: "test:1:1" KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 volumes: - /var/run/docker.sock:/var/run/docker.sock depends_on: - zookeeper networks: my-network: ipv4_address: 172.18.0.101 networks: my-network: external: true #강의 내용과 다르게 추가한 내용 name: ecommerce-network 마지막 네트워크 설정에서 external: true를 추가했습니다.https://stackoverflow.com/questions/58601290/adding-default-external-network-in-docker-compose
- 1
- 2
- 533
고민있어요
2021.06.28 22:58
문서 속성 값 설정에 대한 오타문의
- 1
- 2
- 261