forked from GoogleCloudPlatform/microservices-demo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
152 lines (151 loc) · 5.24 KB
/
docker-compose.yaml
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
version: '3'
services:
adservice:
network_mode: bridge
container_name: adservice
restart: on-failure
image: rookout/microservices-demo-adservice
ports:
- "9555:9555"
cartservice:
network_mode: bridge
container_name: cartservice
restart: on-failure
image: rookout/microservices-demo-cartservice
ports:
- "7070:7070"
environment:
REDIS_ADDR: "host.docker.internal:6379"
checkoutservice:
network_mode: bridge
container_name: checkoutservice
restart: on-failure
image: rookout/microservices-demo-checkoutservice
ports:
- "5050:5050"
environment:
PORT: "5050"
PRODUCT_CATALOG_SERVICE_ADDR: "host.docker.internal:3550"
SHIPPING_SERVICE_ADDR: "host.docker.internal:50051"
PAYMENT_SERVICE_ADDR: "host.docker.internal:50052"
EMAIL_SERVICE_ADDR: "host.docker.internal:8081"
CURRENCY_SERVICE_ADDR: "host.docker.internal:7000"
CART_SERVICE_ADDR: "host.docker.internal:7070"
ROOKOUT_CONTROLLER_HOST: 'wss://staging.control.rookout.com'
ROOKOUT_CONTROLLER_PORT: '443'
ROOKOUT_TOKEN: '[Your token]'
ROOKOUT_TAGS: 'frontend'
ROOKOUT_LABELS: 'app:microservices-demo,microservice:checkoutservice,type:saas'
ROOKOUT_REMOTE_ORIGIN: "https://github.com/rookout/microservices-demo.git"
ROOKOUT_DEBUG: "1"
emailservice:
network_mode: bridge
container_name: emailservice
restart: on-failure
image: rookout/microservices-demo-emailservice
ports:
- "8081:8081"
environment:
PORT: "8081"
frontend:
network_mode: bridge
container_name: frontend
restart: on-failure
image: rookout/microservices-demo-frontend
ports:
- "8080:8080"
environment:
PORT: "8080"
PRODUCT_CATALOG_SERVICE_ADDR: "host.docker.internal:3550"
CURRENCY_SERVICE_ADDR: "host.docker.internal:7000"
CART_SERVICE_ADDR: "host.docker.internal:7070"
RECOMMENDATION_SERVICE_ADDR: "host.docker.internal:8082"
SHIPPING_SERVICE_ADDR: "host.docker.internal:50051"
CHECKOUT_SERVICE_ADDR: "host.docker.internal:5050"
AD_SERVICE_ADDR: "host.docker.internal:9555"
ROOKOUT_CONTROLLER_HOST: 'wss://staging.control.rookout.com'
ROOKOUT_CONTROLLER_PORT: '443'
ROOKOUT_TOKEN: '[Your token]'
ROOKOUT_TAGS: 'frontend'
ROOKOUT_LABELS: 'app:microservices-demo,microservice:frontend,type:saas'
ROOKOUT_REMOTE_ORIGIN: "https://github.com/rookout/microservices-demo.git"
ROOKOUT_DEBUG: "1"
paymentservice:
network_mode: bridge
container_name: paymentservice
restart: on-failure
image: rookout/microservices-demo-paymentservice
ports:
- "50052:50052"
environment:
PORT: "50052"
productcatalogservice:
network_mode: bridge
container_name: productcatalogservice
restart: on-failure
image: rookout/microservices-demo-productcatalogservice
ports:
- "3550:3550"
environment:
PORT: "3550"
ROOKOUT_CONTROLLER_HOST: 'wss://staging.control.rookout.com'
ROOKOUT_CONTROLLER_PORT: '443'
ROOKOUT_TOKEN: '[Your token]'
ROOKOUT_REMOTE_ORIGIN: "https://github.com/rookout/microservices-demo.git"
ROOKOUT_DEBUG: "1"
ROOKOUT_LABELS: 'app:microservices-demo,microservice:productcatalogservice,type:saas'
ROOKOUT_TAGS: 'productcatalogservice'
recommendationservice:
network_mode: bridge
container_name: recommendationservice
restart: on-failure
image: rookout/microservices-demo-recommendationservice
ports:
- "8082:8082"
environment:
PORT: "8082"
PRODUCT_CATALOG_SERVICE_ADDR: "host.docker.internal:3550"
redis-cart:
network_mode: bridge
container_name: redis-cart
restart: on-failure
image: redis:alpine
ports:
- "6379:6379"
volumes:
- redis-microservices-volume:/data
shippingservice:
network_mode: bridge
container_name: shippingservice
restart: on-failure
image: rookout/microservices-demo-shippingservice
ports:
- "50051:50051"
environment:
PORT: "50051"
PRODUCT_CATALOG_SERVICE_ADDR: "host.docker.internal:3550"
CURRENCY_SERVICE_ADDR: "host.docker.internal:7000"
CART_SERVICE_ADDR: "host.docker.internal:7070"
RECOMMENDATION_SERVICE_ADDR: "host.docker.internal:8082"
SHIPPING_SERVICE_ADDR: "host.docker.internal:50051"
CHECKOUT_SERVICE_ADDR: "host.docker.internal:5050"
AD_SERVICE_ADDR: "host.docker.internal:9555"
ROOKOUT_CONTROLLER_HOST: 'wss://staging.control.rookout.com'
ROOKOUT_CONTROLLER_PORT: '443'
ROOKOUT_TOKEN: '[Your token]'
ROOKOUT_REMOTE_ORIGIN: "https://github.com/rookout/microservices-demo.git"
ROOKOUT_DEBUG: "1"
ROOKOUT_LABELS: 'app:microservices-demo,microservice:shippingservice,type:saas'
ROOKOUT_TAGS: 'shippingservice'
currencyservice:
network_mode: bridge
container_name: currencyservice
restart: on-failure
image: rookout/microservices-demo-currencyservice
ports:
- "7000:7000"
environment:
PORT: "7000"
# in mac the volume is located at: docker inspect project_pgdata
volumes:
redis-microservices-volume: