-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (101 loc) · 2.97 KB
/
docker-compose.yml
File metadata and controls
112 lines (101 loc) · 2.97 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
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
version: "3.7"
services:
go2shop-db:
image: go2shop-db-3307:0.0.1
build: ./dbscript
restart: always
ports:
- 3307:3306
environment:
MYSQL_ROOT_PASSWORD: go2shop
go2shop-registry:
image: go2shop-registry-8761:0.0.1
build: ./go2shop-registry
ports:
- "8761:8761"
expose:
- 8761
go2shop-gateway:
image: go2shop-gateway-8770:0.0.1
build: ./go2shop-gateway
depends_on:
- go2shop-db
- go2shop-registry
ports:
- "8770:8770"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://go2shop-registry:8761/eureka
SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK-SET-URI: 'http://go2shop-auth-service:8780/rsa/publicKey'
go2shop-auth-service:
image: go2shop-auth-service-8780:0.0.1
build: ./go2shop-auth-service
depends_on:
- go2shop-db
- go2shop-registry
ports:
- "8780:8780"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://go2shop-registry:8761/eureka
SPRING_DATASOURCE_URL: jdbc:mysql://go2shop-db:3306/authdb
go2shop-cart-service:
image: go2shop-cart-service-8762:0.0.1
build: ./go2shop-cart-service
depends_on:
- go2shop-db
- go2shop-registry
ports:
- "8762:8762"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://go2shop-registry:8761/eureka
SPRING_DATASOURCE_URL: jdbc:mysql://go2shop-db:3306/shoppingcartdb
go2shop-catalogue-service:
image: go2shop-catalogue-service-8763:0.0.1
build: ./go2shop-catalogue-service
depends_on:
- go2shop-db
- go2shop-registry
ports:
- "8763:8763"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://go2shop-registry:8761/eureka
SPRING_DATASOURCE_URL: jdbc:mysql://go2shop-db:3306/productdb
go2shop-order-service:
image: go2shop-order-service-8764:0.0.1
build: ./go2shop-order-service
depends_on:
- go2shop-db
- go2shop-registry
ports:
- "8764:8764"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://go2shop-registry:8761/eureka
SPRING_DATASOURCE_URL: jdbc:mysql://go2shop-db:3306/orderdb
go2shop-payment-service:
image: go2shop-payment-service-8765:0.0.1
build: ./go2shop-payment-service
depends_on:
- go2shop-db
- go2shop-registry
ports:
- "8765:8765"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://go2shop-registry:8761/eureka
go2shop-user-service:
image: go2shop-user-service-8766:0.0.1
build: ./go2shop-user-service
depends_on:
- go2shop-db
- go2shop-registry
ports:
- "8766:8766"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://go2shop-registry:8761/eureka
SPRING_DATASOURCE_URL: jdbc:mysql://go2shop-db:3306/userdb
go2shop-app:
restart: always
image: go2shop-app
build: ./go2shop-app
depends_on:
- go2shop-gateway
ports:
- 4200:80