diff --git a/docker-compose.yml b/docker-compose.yml index 912b1ddc..51c95b8a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -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" @@ -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: @@ -86,9 +69,5 @@ volumes: driver: local log-data: driver: local - zookeeper-data: - driver: local - zookeeper-datalog: - driver: local kafka-data: driver: local