forked from apollographql/federation-jvm-spring-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (39 loc) · 951 Bytes
/
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
services:
router:
image: ghcr.io/apollographql/router:v1.32.0
volumes:
- ./router.yaml:/dist/config/router.yaml
- ./supergraph.graphql:/dist/config/supergraph.graphql
ports:
- 3000:3000
- 8088:8088
command: -c config/router.yaml -s config/supergraph.graphql
depends_on:
- products
- reviews
products:
build:
context: .
dockerfile: products-subgraph/Dockerfile
args:
JAR_FILE: ./products.jar
ports:
- 8080:8080
healthcheck:
test: [ "CMD", "curl", "http://products:8080/actuator/health" ]
interval: 5s
timeout: 1s
retries: 10
reviews:
build:
context: .
dockerfile: reviews-subgraph/Dockerfile
args:
JAR_FILE: ./reviews.jar
ports:
- 8081:8081
healthcheck:
test: [ "CMD", "curl", "http://reviews:8081/actuator/health" ]
interval: 5s
timeout: 1s
retries: 10