-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.6 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
# This Docker Compose file can be used to quickly bootup Dgraph Zero
# and Alpha in different Docker containers.
# It mounts /tmp/data on the host machine to /dgraph within the
# container. You can change /tmp/data to a more appropriate location.
# Run `docker-compose up` to start Dgraph.
version: "3.9"
services:
jupiter:
build:
context: .
dockerfile: ./jupiter/Dockerfile
restart: always
depends_on:
- alpha
- jaeger
ports:
- 50051:50051
# volumes:
# - $PWD/jupiter/.env:/.env
# Dgraph zero - cordinates cluster
zero:
image: dgraph/dgraph:latest
# volumes:
# - ~/Labs/data/dgraph/data:/dgraph
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080
# Dgraph - alpha database server nodes
alpha:
image: dgraph/dgraph:latest
depends_on:
- zero
# volumes:
# - /Labs/data/dgraph/data:/dgraph
ports:
- 8080:8080
- 9080:9080
restart: on-failure
command: dgraph alpha --security whitelist=0.0.0.0/0 --my=alpha:7080 --zero=zero:5080
# Dgraph ui
ratel:
image: dgraph/ratel:latest
depends_on:
- zero
ports:
- 8000:8000
command: dgraph-ratel
jaeger:
image: jaegertracing/all-in-one
container_name: jaeger
ports:
- 6831:6831/udp
- 6832:6832/udp
- 16686:16686
- 14268:14268