forked from dgraph-io/travel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
64 lines (58 loc) · 1.37 KB
/
docker-compose.yaml
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
63
# https://docs.docker.com/compose/compose-file
version: '3.8'
networks:
shared-network:
driver: bridge
services:
# Database
dgraph-zero:
container_name: dgraph-zero
networks:
- shared-network
image: dgraph/dgraph:v20.03.1
environment:
- DGRAPH_ZERO_MY=dgraph-zero:5080
command: dgraph zero
dgraph-alpha:
container_name: dgraph-alpha
networks:
- shared-network
image: dgraph/dgraph:v20.03.1
ports:
- 8080:8080
depends_on:
- dgraph-zero
environment:
- DGRAPH_ALPHA_MY=dgraph-alpha:7080
- DGRAPH_ALPHA_LRU_MB=1024
- DGRAPH_ALPHA_ZERO=dgraph-zero:5080
- DGRAPH_ALPHA_WHITELIST=0.0.0.0/0
command: dgraph alpha
# This is the core service API.
travel-api:
container_name: travel-api
networks:
- shared-network
image: travel-api-amd64:1.0
ports:
- 3000:3000 # API
- 4000:4000 # DEBUG API
depends_on:
- dgraph-alpha
# environment:
# - GODEBUG=gctrace=1
# This is the core service API.
travel-ui:
container_name: travel-ui
networks:
- shared-network
image: travel-ui-amd64:1.0
ports:
- 80:80 # API
- 4080:4080 # DEBUG API
depends_on:
- dgraph-alpha
environment:
- UI_API_KEYS_MAPS_KEY=<ENTER_KEY_HERE>
- UI_DGRAPH_URL=http://dgraph-alpha:8080
# - GODEBUG=gctrace=1