Closed hyunbin7303 closed 1 year ago
After changing docker-compose file (and folder structure), kafka broker is not working properly.
Previous Docker Compose file
version: '3.4' name: HappYnessProject services: mongo: image: mongo restart: always ports: - 28017:27017 environment: - MONGO_INITDB_ROOT_USERNAME=admin - MONGO_INITDB_ROOT_PASSWORD=secret networks: - happy_network hp.api: image: ${DOCKER_REGISTRY-}hpapi build: context: . dockerfile: HP.Api/Dockerfile depends_on: - mongo networks: - happy_network hp.blazor: image: ${DOCKER_REGISTRY-}blazorui build: context: . dockerfile: BlazorUI/Dockerfile depends_on: - mongo ports: - 5555:80 networks: - happy_network zookeeper: image: bitnami/zookeeper restart: always ports: - "2181:2181" volumes: - "zookeeper_data:/bitnami" environment: - ALLOW_ANONYMOUS_LOGIN=yes networks: - happy_network kafka: image: bitnami/kafka ports: - "9092:9092" restart: always volumes: - "kafka_data:/bitnami" environment: - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 - ALLOW_PLAINTEXT_LISTENER=yes - KAFKA_LISTENERS=PLAINTEXT://:9092 - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 depends_on: - zookeeper networks: - happy_network postgres: image: postgres container_name: postgres_readdb environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=Cc7594435! ports: - '5432:5432' networks: - happy_network volumes: zookeeper_data: driver: local kafka_data: driver: local networks: happy_network: name: happiness_bridge driver: bridge
checkout the https://github.com/HappYness-Project/Happy-EventSourcing/commit/27a15897341ac75e1e7df23a2fdf75065be920c2
After changing docker-compose file (and folder structure), kafka broker is not working properly.
Previous Docker Compose file