mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
41 lines
995 B
YAML
41 lines
995 B
YAML
---
|
|
volumes:
|
|
postgres:
|
|
services:
|
|
zookeeper:
|
|
image: 'bitnami/zookeeper:latest'
|
|
environment:
|
|
ALLOW_ANONYMOUS_LOGIN: yes
|
|
kafka:
|
|
image: 'bitnami/kafka:latest'
|
|
environment:
|
|
KAFKA_BROKER_ID: 1
|
|
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092
|
|
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
|
|
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
|
|
ALLOW_PLAINTEXT_LISTENER: yes
|
|
depends_on:
|
|
- zookeeper
|
|
postgres:
|
|
extends:
|
|
file: ../../docker-compose.yml
|
|
service: postgres
|
|
ledger:
|
|
extends:
|
|
file: ../../docker-compose.yml
|
|
service: ledger
|
|
depends_on:
|
|
- postgres
|
|
- kafka
|
|
image: golang:1.19-alpine
|
|
entrypoint: go run main.go serve
|
|
volumes:
|
|
- ../..:/src
|
|
working_dir: /src
|
|
environment:
|
|
CGO_ENABLED: 0
|
|
DEBUG: "true"
|
|
PUBLISHER_KAFKA_ENABLED: "true"
|
|
PUBLISHER_KAFKA_BROKER: "kafka:9092"
|
|
PUBLISHER_TOPIC_MAPPING: "*:default" # Send all to 'default' topic
|