-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
37 lines (37 loc) · 1.07 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
version: "3.9"
services:
web:
build: .
ports:
- "9000:8000"
volumes:
- .:/app
- $HOME/threatdb_data_dir:/data/import
environment:
- DGRAPH_GRAPHQL_HOST=${DGRAPH_GRAPHQL_HOST:-http://alpha:8080/graphql}
- DGRAPH_RPC_HOST=${DGRAPH_RPC_HOST:-alpha:9080}
- DGRAPH_API_KEY=${DGRAPH_API_KEY:-changeme}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- THREATDB_DATA_DIR=/data/import
zero:
image: dgraph/dgraph:v22.0.1
volumes:
- $HOME/dgraph:/dgraph
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080 --telemetry 'reports=false;sentry=false;'
ratel:
image: dgraph/ratel:latest
ports:
- 8000:8000
alpha:
image: dgraph/dgraph:v22.0.1
volumes:
- $HOME/dgraph:/dgraph
ports:
- 8080:8080
- 9080:9080
restart: on-failure
command: dgraph alpha --my=alpha:7080 --zero=zero:5080 --telemetry 'reports=false;sentry=false;' --badger 'compression=zstd:1' --security 'token=changeme;whitelist=10.1.0.0/16,127.0.0.1,172.19.0.0/16'