forked from SCK-SEAL-TEAM-One/shopping-cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.deploy.yml
75 lines (67 loc) · 1.59 KB
/
docker-compose.deploy.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
version: "3.5"
services:
store-service:
image: sckseal/toy-store-service:0.0.3
container_name: store-service
ports:
- "8000:8000"
depends_on:
- store-database
restart: always
environment:
- TEST_MODE=true
store-cache:
image: redis:latest
container_name: store-cache
ports:
- "6379:6379"
store-database:
image: mysql:5.7
container_name: store-database
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=sealteam
- MYSQL_PASSWORD=sckshuhari
- MYSQL_DATABASE=toy
volumes:
- ./tearup/:/docker-entrypoint-initdb.d/
ports:
- "3306:3306"
# store-database-cluster:
# image: mysql/mysql-cluster:5.7
# container_name: store-database
# environment:
# - MYSQL_ROOT_PASSWORD=root
# - MYSQL_USER=sealteam
# - MYSQL_PASSWORD=sckshuhari
# - MYSQL_DATABASE=toy
# volumes:
# - ./tearup/:/docker-entrypoint-initdb.d/
# ports:
# - "3306:3306"
store-web:
image: sckseal/toy-store-web:0.0.2
container_name: store-web
ports:
- "3000:3000"
store-nginx:
image: sckseal/toy-store-nginx:0.0.2
container_name: store-nginx
restart: always
depends_on:
- store-service
- store-web
ports:
- "80:80"
bank-gateway:
image: sckseal/toy-store-bankgateway:0.0.1
container_name: bank-gateway
restart: always
ports:
- "8882:8882"
shipping-gateway:
image: sckseal/toy-store-shippinggateway:0.0.1
container_name: shipping-gateway
restart: always
ports:
- "8883:8882"