-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 780 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 780 Bytes
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
version: "3.2"
services:
zero:
image: dgraph/dgraph:v21.03.2
volumes:
- ./data:/dgraph
restart: on-failure
command: dgraph zero --my=zero:5080
networks:
- dgraph
alpha:
image: dgraph/dgraph:v21.03.2
environment:
DGRAPH_ALPHA_GRAPHQL_LAMBDA_URL: "http://lambda:8686/graphql-worker"
volumes:
- ./data:/dgraph
ports:
- 8080:8080
restart: on-failure
command: dgraph alpha --my=alpha:7080 --zero=zero:5080 --graphql lambda-url=http://lambda:8686/graphql-worker --security "whitelist=0.0.0.0/0"
networks:
- dgraph
lambda:
build: .
environment:
DGRAPH_URL: alpha
volumes:
- .:/lambda
networks:
- dgraph
networks:
dgraph:
driver: bridge
name: dgraph