diff --git a/docker-compose.yml b/docker-compose.yml index 8eb0b94..051d782 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -123,6 +123,7 @@ services: KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 ALLOW_PLAINTEXT_LISTENER: yes + KAFKA_HEAP_OPTS: -Xmx2g # healthcheck: # test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic main --describe"] # interval: 2s diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index d6aa7e8..64fca6c 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -120,6 +120,7 @@ services: KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 ALLOW_PLAINTEXT_LISTENER: yes + KAFKA_HEAP_OPTS: -Xmx2g # healthcheck: # test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --topic main --describe"] # interval: 2s