From a3535f76881c946a330b739f9ccb53bf9be244bd Mon Sep 17 00:00:00 2001 From: Sebastian Choren Date: Wed, 25 Oct 2023 15:47:51 -0300 Subject: [PATCH] disable kafka --- docker-compose.agent.yml | 96 ++++++++++++++++++++-------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/docker-compose.agent.yml b/docker-compose.agent.yml index a7a28bf..8ce0348 100644 --- a/docker-compose.agent.yml +++ b/docker-compose.agent.yml @@ -34,33 +34,33 @@ services: interval: 1s timeout: 5s retries: 60 - stream: - image: confluentinc/cp-kafka:latest-ubi8 - ports: - - 29092:29092 - environment: - - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://stream:9092,PLAINTEXT_HOST://127.0.0.1:29092 - - KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093,PLAINTEXT_HOST://:29092 - - KAFKA_CONTROLLER_QUORUM_VOTERS=1@0.0.0.0:9093 - - KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER - - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT - - KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=0 - - KAFKA_PROCESS_ROLES=controller,broker - - KAFKA_NODE_ID=1 - - KAFKA_METADATA_LOG_SEGMENT_MS=15000 - - KAFKA_METADATA_MAX_RETENTION_MS=60000 - - KAFKA_METADATA_LOG_MAX_RECORD_BYTES_BETWEEN_SNAPSHOTS=2800 - - KAFKA_AUTO_CREATE_TOPICS_ENABLE=true - - KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 - - KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1 - - KAFKA_HEAP_OPTS=-Xmx200m -Xms200m - - CLUSTER_ID=ckjPoprWQzOf0-FuNkGfFQ - healthcheck: - test: nc -z stream 9092 - start_period: 10s - interval: 5s - timeout: 10s - retries: 10 + # stream: + # image: confluentinc/cp-kafka:latest-ubi8 + # ports: + # - 29092:29092 + # environment: + # - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://stream:9092,PLAINTEXT_HOST://127.0.0.1:29092 + # - KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093,PLAINTEXT_HOST://:29092 + # - KAFKA_CONTROLLER_QUORUM_VOTERS=1@0.0.0.0:9093 + # - KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER + # - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT + # - KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=0 + # - KAFKA_PROCESS_ROLES=controller,broker + # - KAFKA_NODE_ID=1 + # - KAFKA_METADATA_LOG_SEGMENT_MS=15000 + # - KAFKA_METADATA_MAX_RETENTION_MS=60000 + # - KAFKA_METADATA_LOG_MAX_RECORD_BYTES_BETWEEN_SNAPSHOTS=2800 + # - KAFKA_AUTO_CREATE_TOPICS_ENABLE=true + # - KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 + # - KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1 + # - KAFKA_HEAP_OPTS=-Xmx200m -Xms200m + # - CLUSTER_ID=ckjPoprWQzOf0-FuNkGfFQ + # healthcheck: + # test: nc -z stream 9092 + # start_period: 10s + # interval: 5s + # timeout: 10s + # retries: 10 api: image: kubeshop/demo-pokemon-api:latest @@ -109,24 +109,24 @@ services: queue: condition: service_healthy - streaming-worker: - image: kubeshop/demo-pokemon-api:latest - extra_hosts: - - "host.docker.internal:host-gateway" - environment: - DATABASE_URL: postgresql://ashketchum:squirtle123@db:5432/pokeshop?schema=public - POKE_API_BASE_URL: https://pokeapi.co/api/v2 - COLLECTOR_ENDPOINT: http://host.docker.internal:4317 - ZIPKIN_URL: http://localhost:9411 - NPM_RUN_COMMAND: stream-worker - KAFKA_BROKER: 'stream:9092' - KAFKA_TOPIC: 'pokemon' - KAFKA_CLIENT_ID: 'streaming-worker' - REDIS_URL: cache - depends_on: - db: - condition: service_healthy - stream: - condition: service_healthy - cache: - condition: service_healthy + # streaming-worker: + # image: kubeshop/demo-pokemon-api:latest + # extra_hosts: + # - "host.docker.internal:host-gateway" + # environment: + # DATABASE_URL: postgresql://ashketchum:squirtle123@db:5432/pokeshop?schema=public + # POKE_API_BASE_URL: https://pokeapi.co/api/v2 + # COLLECTOR_ENDPOINT: http://host.docker.internal:4317 + # ZIPKIN_URL: http://localhost:9411 + # NPM_RUN_COMMAND: stream-worker + # KAFKA_BROKER: 'stream:9092' + # KAFKA_TOPIC: 'pokemon' + # KAFKA_CLIENT_ID: 'streaming-worker' + # REDIS_URL: cache + # depends_on: + # db: + # condition: service_healthy + # stream: + # condition: service_healthy + # cache: + # condition: service_healthy