-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathdocker-compose.yaml
62 lines (62 loc) · 1.58 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
services:
gqlgen-service:
build:
context: examples/gqlgen-service
healthcheck: &healthcheck
test: wget -qO - http://localhost:8080/health
interval: 5s
timeout: 1s
retries: 5
expose:
- 8080
gqlgen-multipart-file-upload-service:
build:
context: examples/gqlgen-multipart-file-upload-service
healthcheck: &healthcheck
test: wget -qO - http://localhost:8080/health
interval: 5s
timeout: 1s
retries: 5
expose:
- 8080
graph-gophers-service:
healthcheck: *healthcheck
build:
context: examples/graph-gophers-service
expose:
- 8080
slow-service:
healthcheck: *healthcheck
build:
context: examples/slow-service
expose:
- 8080
nodejs-service:
healthcheck: *healthcheck
build:
context: examples/nodejs-service
expose:
- 8080
gateway:
build:
context: .
configs: [gateway]
command: ["-config", "gateway", "-loglevel", "debug"]
environment:
- BRAMBLE_SERVICE_LIST=http://gqlgen-service:8080/query http://gqlgen-multipart-file-upload-service:8080/query http://graph-gophers-service:8080/query http://slow-service:8080/query http://nodejs-service:8080/query
ports:
- 8082:8082
- 8083:8083
- 9009:9009
depends_on:
gqlgen-service:
condition: service_healthy
graph-gophers-service:
condition: service_healthy
slow-service:
condition: service_healthy
nodejs-service:
condition: service_healthy
configs:
gateway:
file: ./examples/gateway.json