-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
154 lines (143 loc) · 3.26 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '3'
services:
mq:
image: rabbitmq:3.9.14-management-alpine
restart: always
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=admin1234
ports:
- "15672:15672"
- "5672:5672"
container_name: rabbitmq
networks:
- NetflixNet
se1:
build:
context: ./ServiceEureka/target
dockerfile: Dockerfile
restart: always
environment:
- SERVER_PORT=8761
- SPRING_PROFILES_ACTIVE=peer1
ports:
- "8761:8761"
depends_on:
- mq
container_name: service-eureka-peer1
networks:
- NetflixNet
config:
build:
context: ./SpringServiceConfig/target
dockerfile: Dockerfile
command: ["/app/wait-for.sh", "se1:8761", "--", "java", "-jar", "/app/SpringServiceConfig-SSC1.0.0.jar"]
restart: always
environment:
- SERVER_PORT=8771
ports:
- "8771:8771"
depends_on:
- se1
container_name: service-config
networks:
- NetflixNet
turbine:
build:
context: ./ServiceTurbine/target
dockerfile: Dockerfile
command: ["/app/wait-for.sh", "se1:8761", "--", "java", "-jar", "/app/ServiceTurbine-ST1.0.0.jar"]
restart: always
depends_on:
- se1
environment:
- SERVER_PORT=8773
ports:
- "8773:8773"
container_name: service-turbine
networks:
- NetflixNet
hystrix:
build:
context: ./ServiceHystrixDashboard/target
dockerfile: Dockerfile
command: ["/app/wait-for.sh", "turbine:8773", "--", "java", "-jar", "/app/ServiceHystrixDashboard-SHD1.0.0.jar"]
restart: always
depends_on:
- turbine
environment:
- SERVER_PORT=8772
ports:
- "8772:8772"
container_name: service-hystrix
networks:
- NetflixNet
rbac:
build:
context: ./ServiceRBAC/target
dockerfile: Dockerfile
command: ["/app/wait-for.sh", "config:8771", "--", "java", "-jar", "/app/SpringCloudEurekaServiceRBAC-ServiceRBAC1.0.0.jar"]
restart: always
depends_on:
- mq
- se1
- config
- turbine
- hystrix
container_name: service-rbac
networks:
- NetflixNet
sms:
build:
context: ./ServiceSMS/target
dockerfile: Dockerfile
command: ["/app/wait-for.sh", "rbac:8401", "--", "java", "-jar", "/app/ServiceSMS-SSMS1.0.0.jar"]
restart: always
depends_on:
- mq
- se1
- config
- turbine
- hystrix
- rbac
container_name: service-sms
networks:
- NetflixNet
gateway:
build:
context: ./SpringCloudGateway/target
dockerfile: Dockerfile
command: ["/app/wait-for.sh", "sms:8402", "--", "java", "-jar", "/app/SpringCloudGateway-SCG1.0.0.jar"]
restart: always
depends_on:
- mq
- se1
- config
- turbine
- hystrix
- rbac
- sms
container_name: service-gateway
networks:
- NetflixNet
nginx:
image: nginx:alpine
container_name: docker-nginx
depends_on:
- mq
- se1
- config
- turbine
- hystrix
- rbac
- sms
- gateway
ports:
- "80:80"
volumes:
- ./nginx-data/conf.d:/etc/nginx/conf.d
networks:
- NetflixNet
networks:
NetflixNet:
driver: bridge