-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-build.yml
111 lines (102 loc) · 2.79 KB
/
docker-compose-build.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '3.7'
services:
jaeger:
image: jaegertracing/all-in-one:1.57
ports:
- "6831:6831/udp"
- "16686:16686"
- "14268:14268"
- "9411:9411"
environment:
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
networks:
- health
health-api:
build:
context: ./health-api
dockerfile: Dockerfile
environment:
- ENVIRONMENT=dev
- BMR_SERVICE_ENDPOINT=bmr-grpc:30000
- IMC_SERVICE_ENDPOINT=imc-grpc:30000
- RECOMMENDATIONS_SERVICE_ENDPOINT=recommendations-grpc:30000
- ZIPKIN_COLLECTOR_ENDPOINT=http://jaeger:9411/api/v2/spans
- NATS_ENABLED=false
- NATS_URI=nats://nats-1:4222,nats://nats-2:4222
ports:
- 8080:8080
volumes:
- ./health-api:/go/src/health-api
networks:
- health
bmr-grpc:
build:
context: ./bmr-grpc-service
dockerfile: Dockerfile
environment:
- ENVIRONMENT=dev
- ZIPKIN_COLLECTOR_ENDPOINT=http://jaeger:9411/api/v2/spans
volumes:
- ./bmr-grpc-service:/go/src/bmr-grpc-service
networks:
- health
imc-grpc:
build:
context: ./imc-grpc-service
dockerfile: Dockerfile
environment:
- ENVIRONMENT=dev
- ZIPKIN_COLLECTOR_ENDPOINT=http://jaeger:9411/api/v2/spans
volumes:
- ./imc-grpc-service:/go/src/imc-grpc-service
networks:
- health
recommendations-grpc:
build:
context: ./recommendations-grpc-service
dockerfile: Dockerfile
environment:
- ENVIRONMENT=dev
- PROTEINS_SERVICE_ENDPOINT=proteins-grpc:30000
- WATER_SERVICE_ENDPOINT=water-grpc:30000
- CALORIES_SERVICE_ENDPOINT=calories-grpc:30000
- ZIPKIN_COLLECTOR_ENDPOINT=http://jaeger:9411/api/v2/spans
volumes:
- ./recommendations-grpc-service:/go/src/recommendations-grpc-service
networks:
- health
proteins-grpc:
build:
context: ./proteins-grpc-service
dockerfile: Dockerfile
environment:
- ENVIRONMENT=dev
- ZIPKIN_COLLECTOR_ENDPOINT=http://jaeger:9411/api/v2/spans
volumes:
- ./proteins-grpc-service:/go/src/proteins-grpc-service
networks:
- health
water-grpc:
build:
context: ./water-grpc-service
dockerfile: Dockerfile
environment:
- ENVIRONMENT=dev
- ZIPKIN_COLLECTOR_ENDPOINT=http://jaeger:9411/api/v2/spans
volumes:
- ./water-grpc-service:/go/src/water-grpc-service
networks:
- health
calories-grpc:
build:
context: ./calories-grpc-service
dockerfile: Dockerfile
environment:
- ENVIRONMENT=dev
- ZIPKIN_COLLECTOR_ENDPOINT=http://jaeger:9411/api/v2/spans
volumes:
- ./calories-grpc-service:/go/src/calories-grpc-service
networks:
- health
networks:
health: