forked from spectrum-finance/ergo-dex-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (81 loc) · 2.37 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3'
services:
zoo1:
image: zookeeper:3.4.9
hostname: zoo1
environment:
ZOO_MY_ID: 1
ZOO_PORT: 2181
ZOO_SERVERS: server.1=zoo1:2888:3888
volumes:
- "../zk-kafka/zoo1/data:/data:rw"
- "../zk-kafka/zoo1/datalog:/datalog:rw"
kafka1:
image: confluentinc/cp-kafka:5.3.0
hostname: kafka1
container_name: kafka1
links:
- zoo1
environment:
HOSTNAME_COMMAND: "docker info | grep ^Name: | cut -d' ' -f 2"
KAFKA_BROKER_ID: 1
KAFKA_REPLICATION_FACTOR: 1
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka1:9092,CONNECTIONS_FROM_HOST://localhost:19091
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
volumes:
- "../zk-kafka/kafka1/data:/var/lib/kafka/data:rw"
manager:
image: sheepkiller/kafka-manager
ports:
- 9000:9000
environment:
- ZK_HOSTS=zoo1:2181
depends_on:
- zoo1
redis:
image: redis:latest
restart: always
command: ["redis-server"]
ports:
- "127.0.0.1:6379:6379"
volumes:
- "../redis:/data"
tracker:
build:
context: ${DEX_SOURCES_PATH}/modules/utxo-tracker/target/docker/stage
dockerfile: Dockerfile
volumes:
- "../logs:/var/log/dex-backend:rw"
env_file: config.env
depends_on:
- kafka1
- redis
amm-executor:
build:
context: ${DEX_SOURCES_PATH}/modules/amm-executor/target/docker/stage
dockerfile: Dockerfile
volumes:
- "../logs:/var/log/dex-backend:rw"
env_file: config.env
depends_on:
- kafka1
- poolresolver
poolresolver:
build:
context: ${DEX_SOURCES_PATH}/modules/pool-resolver/target/docker/stage
dockerfile: Dockerfile
volumes:
- "../logs:/var/log/dex-backend:rw"
- "../data/pool-resolver/rocks:/usr/local/etc/rocks:Z"
env_file: config.env
ports:
- 9876:9876
depends_on:
- kafka1
- redis