From 4f8a1683170079fabe359448f0c213c21b80d5fa Mon Sep 17 00:00:00 2001 From: kasean Date: Thu, 21 Dec 2023 14:08:09 +0300 Subject: [PATCH 1/2] new error from container --- containers-errors/Errors.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 containers-errors/Errors.md diff --git a/containers-errors/Errors.md b/containers-errors/Errors.md new file mode 100644 index 0000000..54d105b --- /dev/null +++ b/containers-errors/Errors.md @@ -0,0 +1 @@ +org.apache.kafka.common.network.InvalidReceiveException: Invalid receive (size = 1195725856 larger than 104857600) \ No newline at end of file From ccb2a65906927e96e94e791c430980d7980d5607 Mon Sep 17 00:00:00 2001 From: kasean Date: Thu, 21 Dec 2023 14:11:32 +0300 Subject: [PATCH 2/2] added kafka to docker-compose.yml #7 --- docker/docker-compose.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 017930c..655f761 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -2,9 +2,6 @@ version: '3.7' services: keycloak: -# build: -# context: . -# dockerfile: Dockerfile image: jboss/keycloak environment: - KEYCLOAK_USER=admin @@ -28,5 +25,21 @@ services: volumes: - postgres_data:/var/lib/postgresql/data + zookeeper: + image: confluentinc/cp-zookeeper:latest + environment: + ZOOKEEPER_CLIENT_PORT: 2181 + + kafka: + image: confluentinc/cp-kafka:latest + depends_on: + - zookeeper + environment: + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092 + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + ports: + - "9092:9092" + volumes: postgres_data: