-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
184 lines (175 loc) · 4.82 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
version: '3.8'
services:
cloud-server:
build:
context: ./cloud-server
dockerfile: ./Dockerfile
image: cloud-server
restart: always
ports:
- "8888:8888"
networks:
loga:
ipv4_address: 172.20.0.2
container_name: cloud-server
naming-server:
build:
context: ./naming-server
dockerfile: ./Dockerfile
image: naming-server
environment:
SPRING_CLOUD_CONFIG_URI: http://cloud-server:8888
depends_on:
- cloud-server
restart: always
ports:
- "8761:8761"
networks:
loga:
ipv4_address: 172.20.0.3
container_name: naming-server
zipkin-server:
image: openzipkin/zipkin:latest
restart: always
ports:
- "9411:9411"
networks:
loga:
ipv4_address: 172.20.0.4
container_name: zipkin-server
gateway-server:
build:
context: ./gateway-server
dockerfile: ./Dockerfile
image: gateway-server
environment:
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
depends_on:
- naming-server
ports:
- "8765:8765"
networks:
loga:
ipv4_address: 172.20.0.5
container_name: gateway-server
data-server:
image: postgres:alpine3.19
restart: always
environment:
POSTGRES_USER: loga
POSTGRES_PASSWORD: Log@2024
POSTGRES_DB: loga
ports:
- "25432:5432"
networks:
loga:
ipv4_address: 172.20.0.8
container_name: data-server
authentication-service:
build:
context: ./authentication-service
dockerfile: ./Dockerfile
image: authentication-service
depends_on:
- naming-server
- data-server
environment:
SPRING.DATASOURCE.URL: jdbc:postgresql://data-server:5432/loga
SPRING.DATASOURCE.USERNAME: loga
SPRING.DATASOURCE.PASSWORD: Log@2024
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
ports:
- "8001:8001"
networks:
loga:
ipv4_address: 172.20.0.10
container_name: authentication-service
customer-service:
build:
context: ./customer-service
dockerfile: ./Dockerfile
image: customer-service
depends_on:
- naming-server
- data-server
environment:
SPRING.DATASOURCE.URL: jdbc:postgresql://data-server:5432/loga
SPRING.DATASOURCE.USERNAME: loga
SPRING.DATASOURCE.PASSWORD: Log@2024
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
ports:
- "8002:8002"
networks:
loga:
ipv4_address: 172.20.0.10
container_name: customer-service
maintenance-service:
build:
context: ./maintenance-service
dockerfile: ./Dockerfile
image: maintenance-service
depends_on:
- naming-server
- data-server
environment:
SPRING.DATASOURCE.URL: jdbc:postgresql://data-server:5432/loga
SPRING.DATASOURCE.USERNAME: loga
SPRING.DATASOURCE.PASSWORD: Log@2024
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
ports:
- "8003:8003"
networks:
loga:
ipv4_address: 172.20.0.10
container_name: maintenance-service
report-service:
build:
context: ./report-service
dockerfile: ./Dockerfile
image: report-service
depends_on:
- naming-server
- data-server
environment:
SPRING.DATASOURCE.URL: jdbc:postgresql://data-server:5432/loga
SPRING.DATASOURCE.USERNAME: loga
SPRING.DATASOURCE.PASSWORD: Log@2024
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
ports:
- "8004:8004"
networks:
loga:
ipv4_address: 172.20.0.10
container_name: report-service
resource-service:
build:
context: ./resource-service
dockerfile: ./Dockerfile
image: resource-service
depends_on:
- naming-server
- data-server
environment:
SPRING.DATASOURCE.URL: jdbc:postgresql://data-server:5432/loga
SPRING.DATASOURCE.USERNAME: loga
SPRING.DATASOURCE.PASSWORD: Log@2024
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans
ports:
- "8005:8005"
networks:
loga:
ipv4_address: 172.20.0.10
container_name: resource-service
networks:
loga:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
gateway: 172.20.0.1