Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion docker-compose.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,36 @@ services:
image: nats:${DC_NATS_VERSION:-2.10.6}
profiles:
- default
command:
- '--js'
ports:
- '4222:4222'
- '8222:8222'
- '6222:6222'
networks:
- primary

kafka:
image: bitnami/kafka:3.7.0
profiles:
- default
environment:
KAFKA_ENABLE_KRAFT: yes
KAFKA_CFG_PROCESS_ROLES: controller,broker
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@kafka:9093
KAFKA_CFG_TRANSACTION_PARTITION_VERIFICATION_ENABLE: false
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_CFG_NODE_ID: 1
ALLOW_PLAINTEXT_LISTENER: yes
KAFKA_KRAFT_CLUSTER_ID: XkpGZQ27R3eTl3OdTm2LYA # 16 byte base64-encoded UUID
ports:
- '9092:9092'
networks:
- primary

# Cosmo Platform

cdn:
Expand Down Expand Up @@ -322,12 +345,13 @@ services:
HTTPS_PROXY: ${HTTPS_PROXY}
HTTP_PROXY: ${HTTP_PROXY}
NO_PROXY: ${NO_PROXY}
NATS_URL: "nats://nats:4222"
restart: on-failure
volumes:
# Mount the example config from the repo into the working dir of the router binary location
# In order apply changes to the config, you need to restart the router container
# docker compose -f docker-compose.full.yml --profile router restart router
- ./router/config.yaml:/config.yaml
- ./router/full-demo.config.yaml:/config.yaml
networks:
- primary
profiles:
Expand Down
6 changes: 0 additions & 6 deletions router/config.yaml

This file was deleted.

18 changes: 18 additions & 0 deletions router/full-demo.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# yaml-language-server: $schema=./pkg/config/config.schema.json

# See pkg/config/config.go for the full list of configuration options.
# This file is used for the demo environment

version: "1"

events:
providers:
nats:
- id: default
url: "nats://nats:4222"
- id: my-nats
url: "nats://nats:4222"
kafka:
- id: my-kafka
brokers:
- "kafka:9092"