-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
45 lines (43 loc) · 1.14 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
version: '3.4'
services:
lambda:
build:
context: .
args:
nodeEnv: development
volumes:
- ./script/script.js:/app/script/script.js:ro
environment:
- DGRAPH_URL=http://host.docker.internal:8080
- MAX_MEMORY_LIMIT=256M
ports:
- 8686:8686
depends_on:
- alpha
# Dgraph Zero controls the cluster
zero:
image: dgraph/dgraph:latest
container_name: lambda_dgraph_zero
ports:
- 5080:5080
- 6080:6080
command: dgraph zero --my=zero:5080 --logtostderr -v=2 --telemetry sentry=false
restart: unless-stopped
# Dgraph Alpha hosts the graph and indexes
alpha:
image: dgraph/dgraph:latest
container_name: lambda_dgraph_alpha
volumes:
- ./acl:/config/acl
ports:
- 8080:8080
- 9080:9080
command: >
dgraph alpha --my=alpha:7080 --zero=zero:5080
--security whitelist=0.0.0.0/0
--logtostderr -v=2
--graphql lambda-url=http://host.docker.internal:8686/graphql-worker
--telemetry sentry=false
environment:
DGRAPH_ALPHA_ACL: secret-file=/config/acl/hmac_secret_file
restart: unless-stopped