File tree 7 files changed +121
-0
lines changed
7 files changed +121
-0
lines changed Original file line number Diff line number Diff line change
1
+ server :
2
+ port : 8083
3
+
4
+ spring :
5
+ application :
6
+ name : api-gateway
7
+
8
+ zipkin :
9
+ base-url : http://zipkin:9411
10
+
11
+ cloud :
12
+ gateway :
13
+ routes :
14
+ - id : customer
15
+ uri : lb://CUSTOMER
16
+ predicates :
17
+ - Path=/api/v1/customer/**
18
+
19
+ eureka :
20
+ client :
21
+ service-url :
22
+ defaultZone : http://eureka-server:8761/eureka
23
+ fetch-registry : true
24
+ register-with-eureka : true
Original file line number Diff line number Diff line change 25
25
</plugins >
26
26
</build >
27
27
28
+ <profiles >
29
+ <profile >
30
+ <id >build-docker-image</id >
31
+ <build >
32
+ <plugins >
33
+ <plugin >
34
+ <groupId >com.google.cloud.tools</groupId >
35
+ <artifactId >jib-maven-plugin</artifactId >
36
+ </plugin >
37
+ </plugins >
38
+ </build >
39
+ </profile >
40
+ </profiles >
41
+
28
42
<dependencies >
29
43
<dependency >
30
44
<groupId >org.springframework.boot</groupId >
Original file line number Diff line number Diff line change @@ -32,16 +32,43 @@ services:
32
32
container_name : zipkin
33
33
ports :
34
34
- " 9411:9411"
35
+ networks :
36
+ - spring
35
37
rabbitmq :
36
38
image : rabbitmq:3.9.11-management-alpine
37
39
container_name : rabbitmq
38
40
ports :
39
41
- " 5672:5672"
40
42
- " 15672:15672"
43
+ eureka-server :
44
+ image : hrkarimi/eureka-server:latest
45
+ container_name : eureka-server
46
+ ports :
47
+ - " 8761:8761"
48
+ environment :
49
+ - SPRING_PROFILES_ACTIVE=docker
50
+ networks :
51
+ - spring
52
+ depends_on :
53
+ - zipkin
54
+ apigw :
55
+ image : hrkarimi/apigw:latest
56
+ container_name : apigw
57
+ ports :
58
+ - " 8083:8083"
59
+ environment :
60
+ - SPRING_PROFILES_ACTIVE=docker
61
+ networks :
62
+ - spring
63
+ depends_on :
64
+ - zipkin
65
+ - eureka-server
41
66
42
67
networks :
43
68
postgres :
44
69
driver : bridge
70
+ spring :
71
+ driver : bridge
45
72
46
73
volumes :
47
74
postgres :
Original file line number Diff line number Diff line change 25
25
</plugins >
26
26
</build >
27
27
28
+ <profiles >
29
+ <profile >
30
+ <id >build-docker-image</id >
31
+ <build >
32
+ <plugins >
33
+ <plugin >
34
+ <groupId >com.google.cloud.tools</groupId >
35
+ <artifactId >jib-maven-plugin</artifactId >
36
+ </plugin >
37
+ </plugins >
38
+ </build >
39
+ </profile >
40
+ </profiles >
41
+
28
42
<dependencies >
29
43
<dependency >
30
44
<groupId >org.springframework.cloud</groupId >
Original file line number Diff line number Diff line change
1
+ spring :
2
+ application :
3
+ name : eureka-server
4
+
5
+ zipkin :
6
+ base-url : http://zipkin:9411
7
+
8
+ server :
9
+ port : 8761
10
+
11
+ eureka :
12
+ client :
13
+ fetch-registry : false
14
+ register-with-eureka : false
Original file line number Diff line number Diff line change 25
25
</plugins >
26
26
</build >
27
27
28
+ <profiles >
29
+ <profile >
30
+ <id >build-docker-image</id >
31
+ <build >
32
+ <plugins >
33
+ <plugin >
34
+ <groupId >com.google.cloud.tools</groupId >
35
+ <artifactId >jib-maven-plugin</artifactId >
36
+ </plugin >
37
+ </plugins >
38
+ </build >
39
+ </profile >
40
+ </profiles >
41
+
28
42
<dependencies >
29
43
<dependency >
30
44
<groupId >org.springframework.boot</groupId >
Original file line number Diff line number Diff line change 25
25
</plugins >
26
26
</build >
27
27
28
+ <profiles >
29
+ <profile >
30
+ <id >build-docker-image</id >
31
+ <build >
32
+ <plugins >
33
+ <plugin >
34
+ <groupId >com.google.cloud.tools</groupId >
35
+ <artifactId >jib-maven-plugin</artifactId >
36
+ </plugin >
37
+ </plugins >
38
+ </build >
39
+ </profile >
40
+ </profiles >
41
+
28
42
<dependencies >
29
43
<dependency >
30
44
<groupId >org.springframework.boot</groupId >
You can’t perform that action at this time.
0 commit comments