forked from vmwarecloudadvocacy/acme_fitness_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
126 lines (119 loc) · 3.2 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
version: '3'
services:
user-db:
image: gcr.io/vmwarecloudadvocacy/acmeshop-user-db:latest
hostname: user-db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
- MONGO_INITDB_DATABASE=acmefit
cap_add:
- CHOWN
- SETGID
- SETUID
tmpfs:
- /tmp:rw,noexec,nosuid
order-db:
image: mongo:4
hostname: order-db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
cap_add:
- CHOWN
- SETGID
- SETUID
tmpfs:
- /tmp:rw,noexec,nosuid
catalog-db:
image: gcr.io/vmwarecloudadvocacy/acmeshop-catalog-db:latest
hostname: catalog-db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
- MONGO_INITDB_DATABASE=acmefit
cap_add:
- CHOWN
- SETGID
- SETUID
front-end:
image: gcr.io/vmwarecloudadvocacy/acmeshop-front-end:latest
hostname: front-end
restart: always
ports:
- '3000:3000'
cap_add:
- NET_BIND_SERVICE
environment:
- PORT=3000
- USERS_HOST=user
- CATALOG_HOST=catalog
- CART_HOST=cart
- ORDER_HOST=order
- USERS_PORT=8081
- CATALOG_PORT=8082
- CART_PORT=5000
- ORDER_PORT=6000
user:
image: gcr.io/vmwarecloudadvocacy/acmeshop-user:latest
hostname: users
restart: always
cap_add:
- NET_BIND_SERVICE
environment:
- USERS_DB_USERNAME=mongoadmin
- USERS_DB_PASSWORD=secret
- USERS_DB_HOST=user-db
- USERS_DB_PORT=27017
- USERS_PORT=8081
catalog:
image: gcr.io/vmwarecloudadvocacy/acmeshop-catalog:latest
hostname: catalog
restart: always
cap_add:
- NET_BIND_SERVICE
environment:
- CATALOG_DB_USERNAME=mongoadmin
- CATALOG_DB_PASSWORD=secret
- CATALOG_DB_HOST=catalog-db
- CATALOG_PORT=8082
- CATALOG_DB_PORT=27017
depends_on:
- catalog-db
redis-db:
image: redis:5.0.3-alpine
hostname: redis-db
restart: always
ports:
- '6379:6379'
cart:
image: gcr.io/vmwarecloudadvocacy/acmeshop-cart
hostname: cart
restart: always
environment:
- REDIS_HOST=redis-db
- REDIS_PORT=6379
- CART_PORT=5000
ports:
- '5000:5000'
depends_on:
- redis-db
order:
image: gcr.io/vmwarecloudadvocacy/acmeshop-order:latest
hostname: order
restart: always
ports:
- '6000:6000'
environment:
- PAYMENT_HOST=payment
- ORDER_PORT=6000
- ORDER_DB_HOST=order-db
- ORDER_DB_PASSWORD=secret
- ORDER_DB_USERNAME=mongoadmin
depends_on:
- payment
- order-db
payment:
image: gcr.io/vmwarecloudadvocacy/acmeshop-payment:latest
hostname: payment
restart: always