-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
52 lines (49 loc) · 1.3 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
44
45
46
47
48
49
50
51
52
version: '3.6'
secrets:
petclinic-credentials:
file: /home/docker-user/petclinic-service-account.json
services:
customers-service:
image: saturnism/gcp-spring-petclinic-customers-service
container_name: customers-service
environment:
- PROJECT_ID
- GOOGLE_APPLICATION_CREDENTIALS=/run/secrets/petclinic-credentials
secrets:
- petclinic-credentials
ports:
- 8081:8080
visits-service:
image: saturnism/gcp-spring-petclinic-visits-service
container_name: visits-service
environment:
- PROJECT_ID
- GOOGLE_APPLICATION_CREDENTIALS=/run/secrets/petclinic-credentials
secrets:
- petclinic-credentials
ports:
- 8082:8080
vets-service:
image: saturnism/gcp-spring-petclinic-vets-service
container_name: vets-service
environment:
- PROJECT_ID
- GOOGLE_APPLICATION_CREDENTIALS=/run/secrets/petclinic-credentials
secrets:
- petclinic-credentials
ports:
- 8083:8080
api-gateway:
image: saturnism/gcp-spring-petclinic-api-gateway
container_name: api-gateway
links:
- customers-service
- visits-service
- vets-service
environment:
- PROJECT_ID
- GOOGLE_APPLICATION_CREDENTIALS=/run/secrets/petclinic-credentials
secrets:
- petclinic-credentials
ports:
- 8080:8080