-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
121 lines (120 loc) · 3.81 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
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
112
113
114
115
116
117
118
119
120
121
version: '3.8'
services:
config-server:
build: ./config-server
container_name: config-server
image: barathece91/spring-cloud-sidecar-polygot-config-server:v2.3.0
ports:
- "9500:9500"
networks:
- spring-cloud-network
environment:
SPRING_PROFILES_ACTIVE: native
SPRING_SECURITY_USERNAME: configuser
SPRING_SECURITY_PASSWORD: configpass
eureka-server:
build: ./eureka-server
container_name: eureka-server
image: barathece91/spring-cloud-sidecar-polygot-eureka-server:v2.3.0
ports:
- "9000:9000"
depends_on:
- config-server
networks:
- spring-cloud-network
environment:
SPRING_PROFILES_ACTIVE: docker
SPRING_CLOUD_CONFIG_URI: http://config-server:9500
SPRING_CLOUD_CONFIG_USERNAME: configuser
SPRING_CLOUD_CONFIG_PASSWORD: configpass
msstore-service:
build: ./msstore-microservice
container_name: msstore-service
image: barathece91/spring-cloud-sidecar-polygot-msstore-microservice:v2.3.0
ports:
- "9002:9002"
depends_on:
- config-server
- eureka-server
networks:
- spring-cloud-network
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:9000/eureka
SPRING_CLOUD_CONFIG_URI: http://config-server:9500
SPRING_PROFILES_ACTIVE: docker
SPRING_CLOUD_CONFIG_USERNAME: configuser
SPRING_CLOUD_CONFIG_PASSWORD: configpass
csstore-service:
build: ./csstore-microservice
container_name: csstore-service
image: barathece91/spring-cloud-sidecar-polygot-csstore-microservice:v2.3.0
ports:
- "9001:9001"
depends_on:
- config-server
- eureka-server
networks:
- spring-cloud-network
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:9000/eureka
SPRING_CLOUD_CONFIG_URI: http://config-server:9500
SPRING_PROFILES_ACTIVE: docker
SPRING_CLOUD_CONFIG_USERNAME: configuser
SPRING_CLOUD_CONFIG_PASSWORD: configpass
wsstore-service:
build: ./wstore-node-express
container_name: wsstore-service
image: barathece91/spring-cloud-sidecar-polygot-wstore-node-service:v2.3.0
ports:
- "3000:3000"
depends_on:
- config-server
- eureka-server
- sidecar
networks:
- spring-cloud-network
zuul-proxy:
build: ./zuul-proxy
container_name: zuul-proxy
image: barathece91/spring-cloud-sidecar-polygot-zuul-proxy:v2.3.0
ports:
- "9005:9005"
depends_on:
- config-server
- eureka-server
- msstore-service
- csstore-service
networks:
- spring-cloud-network
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:9000/eureka
ZUUL_ROUTES_MSSTORE_URL: http://msstore-service:9002
ZUUL_ROUTES_CSSTORE_URL: http://csstore-service:9001
ZUUL_ROUTES_WSTORE_URL: http://wsstore-service:3000
SPRING_CLOUD_CONFIG_URI: http://config-server:9500
SPRING_PROFILES_ACTIVE: docker
SPRING_CLOUD_CONFIG_USERNAME: configuser
SPRING_CLOUD_CONFIG_PASSWORD: configpass
sidecar:
build: ./sidecar
container_name: sidecar
image: barathece91/spring-cloud-sidecar-polygot-sidecar:v2.3.0
ports:
- "9004:9004"
depends_on:
- config-server
- eureka-server
networks:
- spring-cloud-network
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:9000/eureka
SIDECAR_HEALTH-URI: http://wsstore-service:3000/health
ZUUL_ROUTES_WSTORE_URL: http://wsstore-service:3000
SPRING_CLOUD_CONFIG_URI: http://config-server:9500
SPRING_CLOUD_CONFIG_USERNAME: configuser
SPRING_CLOUD_CONFIG_PASSWORD: configpass
SPRING_PROFILES_ACTIVE: docker
networks:
spring-cloud-network:
name: spring-cloud-network
driver: bridge