-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-v2.0.yaml
68 lines (60 loc) · 1.66 KB
/
docker-compose-v2.0.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
64
65
66
67
68
version: '3.7'
services:
currency-exchange:
image: swarnadeepghosh/ms-currency-exchange:2.0
mem_limit: 700m
ports:
- "8000:8000"
networks:
- currency-network
depends_on:
- naming-server
environment:
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/registry/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
restart: always
currency-conversion:
image: swarnadeepghosh/ms-currency-conversion:2.0
mem_limit: 700m
ports:
- "8100:8100"
networks:
- currency-network
depends_on:
- naming-server
environment:
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/registry/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
restart: always
api-gateway:
image: swarnadeepghosh/ms-api-gateway:2.0
mem_limit: 700m
ports:
- "8765:8765"
networks:
- currency-network
depends_on:
- naming-server
environment:
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/registry/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
restart: always
naming-server:
image: swarnadeepghosh/ms-naming-server:2.0
mem_limit: 700m
ports:
- "8761:8761"
networks:
- currency-network
restart: always
#docker run -p 9411:9411 openzipkin/zipkin:2.23
zipkin-server:
image: openzipkin/zipkin:2.23
mem_limit: 300m
ports:
- "9411:9411"
networks:
- currency-network
restart: always #Restart if there is a problem starting up
networks:
currency-network: