-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.15 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
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.168.10.100
KAFKA_CREATE_TOPICS: "platform:1:1,bot:1:1,market:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_HEAP_OPTS: "-Xmx256M -Xms256M"
KAFKA_MESSAGE_MAX_BYTES: 2000000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
networks:
default:
aliases:
- kafka
logging:
options:
max-size: "10m"
max-file: "10"
restart: always
mongo:
image: mongo
container_name: mongo
image: mongo:3.2.6
network_mode: host
restart: always
ports:
- "27017:27017"
command: [mongod, --smallfiles]
state:
image: sf-trading-bot-state
container_name: state
build:
context: ./state
dockerfile: Dockerfile
depends_on:
- zookeeper
- mongo
restart: always
network_mode: host