-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (64 loc) · 1.89 KB
/
docker-compose.yml
File metadata and controls
71 lines (64 loc) · 1.89 KB
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
version: '3.7'
services:
currency-exchange-service:
image: muratcanabay/microservice-example-currency-exchange-service:0.0.1-SNAPSHOT
ports:
- '2000:2000'
depends_on:
- eureka-server
networks:
- currency-network
environment:
# docker doesn't know localhost
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
# Load balancing
currency-exchange-service-2:
image: muratcanabay/microservice-example-currency-exchange-service:0.0.1-SNAPSHOT
ports:
- '2001:2001'
depends_on:
- eureka-server
networks:
- currency-network
environment:
# docker doesn't know localhost
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
SERVER.PORT: 2001
currency-conversion-service:
image: muratcanabay/microservice-example-currency-conversion-service:0.0.1-SNAPSHOT
ports:
- '3000:3000'
depends_on:
- eureka-server
networks:
- currency-network
environment:
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
api-gateway:
image: muratcanabay/microservice-example-api-gateway:0.0.1-SNAPSHOT
ports:
- '8765:8765'
depends_on:
- eureka-server
networks:
- currency-network
environment:
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
eureka-server:
image: muratcanabay/microservice-example-eureka-server:0.0.1-SNAPSHOT
ports:
- '8761:8761'
networks:
- currency-network
zipkin-server:
image: openzipkin/zipkin:2.23
ports:
- '9411:9411'
networks:
- currency-network
networks:
currency-network: