-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (61 loc) · 1.34 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
version: "3.2"
services:
zero:
image: dgraph/dgraph:v1.0.17
volumes:
- type: volume
source: dgraph
target: /dgraph
volume:
nocopy: true
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080
server:
image: dgraph/dgraph:v1.0.17
volumes:
- type: volume
source: dgraph
target: /dgraph
volume:
nocopy: true
ports:
- 8080:8080
- 9080:9080
restart: on-failure
command: dgraph alpha --my=server:7080 --lru_mb=2048 --zero=zero:5080
ratel:
image: dgraph/dgraph:v1.0.17
volumes:
- type: volume
source: dgraph
target: /dgraph
volume:
nocopy: true
ports:
- 8000:8000
command: dgraph-ratel
zookeeper:
image: "wurstmeister/zookeeper"
ports:
- "2181:2181"
kafka:
image: "wurstmeister/kafka:0.10.2.0"
ports:
- "9092:9092"
depends_on:
- "zookeeper"
environment:
KAFKA_CREATE_TOPICS: "user_names:4:1,user_follow_infos:4:1,user_scrape_errors:1:1"
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_ADVERTISED_HOST_NAME: "localhost"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
postgres:
image: postgres:11.5
ports:
- 5432:5432
volumes:
dgraph: