-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
60 lines (57 loc) · 1.56 KB
/
docker-compose.yaml
File metadata and controls
60 lines (57 loc) · 1.56 KB
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
name: dbcli-client
services:
zero:
image: dgraph/dgraph:latest
container_name: dgraph_zero
volumes:
- ./storage/zero:/dgraph
ports:
- "5080:5080"
- "6080:6080"
restart: unless-stopped
environment:
DGRAPH_ZERO_WHITELIST: "0.0.0.0/0"
command: dgraph zero --bindall=true --my=zero:5080 --telemetry="reports=false"
alpha:
image: dgraph/dgraph:latest
container_name: dgraph_alpha
volumes:
- ./src/bulk_or_alpha.sh:/dgraph/bulk_or_alpha.sh # Entry point
- ./graphQL:/dgraph/graphQL # Schema
- ./data:/dgraph/data # Data to load into DGraph
- ./storage/alpha:/dgraph # DGraph loaded data
ports:
- "7080:7080"
- "8080:8080"
- "9080:9080"
restart: unless-stopped
environment:
# 2^32 = 4294967296
DGRAPH_ALPHA_LIMIT: "query-edge=4294967296; normalize-node=4294967296; mutations-nquad=1000000"
depends_on:
- zero
command: bash ./bulk_or_alpha.sh
ratel:
image: dgraph/ratel:latest
container_name: dgraph_ratel
ports:
- "8000:8000"
restart: unless-stopped
command: dgraph-ratel
dbcli:
container_name:
dbcli_python
build:
context: ./src
dockerfile: Dockerfile
volumes:
- ./data:/data
- ./src/:/code
- /code/.venv
environment:
DGRAPH_HOST: "dgraph_alpha"
DGRAPH_PORT: "9080"
DEBUG: "FALSE"
stdin_open: true
tty: true
restart: unless-stopped