Skip to content

Commit

Permalink
disable kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Oct 25, 2023
1 parent 0faea38 commit a3535f7
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions docker-compose.agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- [email protected]: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
# - [email protected]: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
Expand Down Expand Up @@ -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

0 comments on commit a3535f7

Please sign in to comment.