-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (78 loc) · 3.28 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
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
version: '3.7'
services:
currency-exchange-service: # RUNNING NAME OF MICROSERVICE
image: syedaanif/ms-v2-currency-exchange-service:0.0.1-SNAPSHOT # IMAGE NAME BUILT
mem_limit: 700m # MEMORY LIMIT
ports: # EXPOSED PORTS
- "8000:8000"
networks:
- currency-exchange-network # NETWORK TO BE CREATED
depends_on:
- eureka-naming-server # DEPENDANT UPON WHICH MICROSERVICE, so order matters
- rabbitmq
environment: # CONFIGURE ENVIRONMENT VARIABLES BECAUSE LOCALHOST FROM DOCKER DOESN'T MEAN THE SAME
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://eureka-naming-server:8761/eureka
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
RABBIT_URI: amqp://guest:guest@rabbitmq:5672
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_ZIPKIN_SENDER_TYPE: rabbit
currency-conversion-service: # RUNNING NAME OF MICROSERVICE
image: syedaanif/ms-v2-currency-conversion-service:0.0.1-SNAPSHOT # IMAGE NAME BUILT
mem_limit: 700m # MEMORY LIMIT
ports: # EXPOSED PORTS
- "8100:8100"
networks:
- currency-exchange-network # NETWORK TO BE CREATED
depends_on:
- eureka-naming-server # DEPENDANT UPON WHICH MICROSERVICE, so order matters
- rabbitmq
environment: # CONFIGURE ENVIRONMENT VARIABLES BECAUSE LOCALHOST FROM DOCKER DOESN'T MEAN THE SAME
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://eureka-naming-server:8761/eureka
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
RABBIT_URI: amqp://guest:guest@rabbitmq:5672
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_ZIPKIN_SENDER_TYPE: rabbit
api-gateway: # RUNNING NAME OF MICROSERVICE
image: syedaanif/ms-v2-api-gateway:0.0.1-SNAPSHOT # IMAGE NAME BUILT
mem_limit: 700m # MEMORY LIMIT
ports: # EXPOSED PORTS
- "8765:8765"
networks:
- currency-exchange-network # NETWORK TO BE CREATED
depends_on:
- eureka-naming-server # DEPENDANT UPON WHICH MICROSERVICE, so order matters
- rabbitmq
environment: # CONFIGURE ENVIRONMENT VARIABLES BECAUSE LOCALHOST FROM DOCKER DOESN'T MEAN THE SAME
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://eureka-naming-server:8761/eureka
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
RABBIT_URI: amqp://guest:guest@rabbitmq:5672
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_ZIPKIN_SENDER_TYPE: rabbit
eureka-naming-server: # RUNNING NAME OF MICROSERVICE
image: syedaanif/ms-v2-eureka-naming-server:0.0.1-SNAPSHOT # IMAGE NAME BUILT
mem_limit: 700m # MEMORY LIMIT
ports: # EXPOSED PORTS
- "8761:8761"
networks:
- currency-exchange-network # NETWORK TO BE PART OF
zipkin-server: # RUNNING NAME OF MICROSERVICE
image: openzipkin/zipkin:2.23 # IMAGE NAME BUILT
mem_limit: 300m # MEMORY LIMIT
ports: # EXPOSED PORTS
- "9411:9411"
networks:
- currency-exchange-network # NETWORK TO BE PART OF
depends_on:
- rabbitmq
environment:
RABBIT_URI: amqp://guest:guest@rabbitmq:5672
rabbitmq: # RUNNING NAME OF MICROSERVICE
image: rabbitmq:3.5.3-management # IMAGE NAME BUILT
mem_limit: 300m # MEMORY LIMIT
ports: # EXPOSED PORTS
- "5672:5672"
- "15672:15672"
networks:
- currency-exchange-network # NETWORK TO BE PART OF
networks:
currency-exchange-network: # NETWORK TO BE CREATED