Skip to content

Commit

Permalink
remove zookeeper dependency (#87)
Browse files Browse the repository at this point in the history
- uses Kafka KRaft mode to run without zookeeper
- remove unnecessary port exposure
  • Loading branch information
Alesfatalis authored Apr 19, 2023
1 parent ade2612 commit 3f9eb2e
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,32 @@
version: '3'
services:
zookeeper:
image: zookeeper:3.7
container_name: zookeeper
restart: always
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
ZOO_ADMINSERVER_ENABLED: "false"
volumes:
- "zookeeper-data:/data"
- "zookeeper-datalog:/datalog"
networks:
- spectrum-network
kafka:
image: bitnami/kafka:2
image: bitnami/kafka:3.4.0
container_name: kafka
restart: always
environment:
KAFKA_ENABLE_KRAFT: yes
KAFKA_CFG_PROCESS_ROLES: "broker,controller"
KAFKA_BROKER_ID: "1"
KAFKA_CFG_LISTENERS: "PLAINTEXT://:9092"
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: "CONTROLLER"
KAFKA_CFG_LISTENERS: "PLAINTEXT://:9092,CONTROLLER://:9093"
KAFKA_CFG_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: "1@kafka:9093"
volumes:
- "kafka-data:/bitnami/kafka"
depends_on:
- zookeeper
networks:
- spectrum-network
redis:
image: redis:7.0-alpine
container_name: redis
restart: always
ports:
- "6379:6379"
volumes:
- "redis-data:/data"
networks:
- spectrum-network
utxo-tracker:
image: spectrumlabs/ergo-utxo-tracker:latest
container_name: utxo-tracker
volumes:
- "log-data:/var/log/dex-backend"
env_file: config.env
Expand All @@ -51,7 +37,6 @@ services:
- spectrum-network
amm-executor:
image: spectrumlabs/ergo-amm-executor:latest
container_name: amm-executor
restart: always
volumes:
- "log-data:/var/log/dex-backend"
Expand All @@ -68,8 +53,6 @@ services:
- "log-data:/var/log/dex-backend"
- "poolresolver-data:/var/lib/pool-resolver:Z"
env_file: config.env
ports:
- "9876:9876"
depends_on:
- kafka
networks:
Expand All @@ -86,9 +69,5 @@ volumes:
driver: local
log-data:
driver: local
zookeeper-data:
driver: local
zookeeper-datalog:
driver: local
kafka-data:
driver: local

0 comments on commit 3f9eb2e

Please sign in to comment.