-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
108 lines (103 loc) · 2.68 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
version: "3"
services:
skyros.mysql:
image: mysql:5.7
platform: linux/x86_64
container_name: "skyros.mysql.database"
restart: always
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- "3306:3306"
expose:
- "3306"
networks:
- default
volumes:
- ./init:/docker-entrypoint-initdb.d
skyros.gatewayservice:
image: skyros-gateway-service:latest
container_name: skyros.gatewayservice.svc
command: /app/skyros-gateway-service
ports:
- "4000:4000"
networks:
- default
build:
context: .
dockerfile: Dockerfile-gatewayservice
skyros.userservice:
image: skyros-user-service:latest
container_name: skyros.userservice.svc
command: /app/skyros-user-service
ports:
- "4001:4001"
restart: always
environment:
- MYSQL_HOST=skyros.mysql.database
- MYSQL_PORT=3306
- MYSQL_USER=root
- MYSQL_PASS=password
- MYSQL_DBNAME=userservice
- SECRET_KEY=userservice-secret-key
- SERVER_ADDRESS=:4001
- GRPC_SERVER_ADDRESS=4011
depends_on:
- skyros.mysql
networks:
- default
build:
context: .
dockerfile: Dockerfile-userservice
skyros.productservice:
image: skyros-product-service:latest
container_name: skyros.productservice.svc
command: /app/skyros-product-service
ports:
- "4002:4002"
restart: always
environment:
- MYSQL_HOST=skyros.mysql.database
- MYSQL_PORT=3306
- MYSQL_USER=root
- MYSQL_PASS=password
- MYSQL_DBNAME=productservice
- SECRET_KEY=userservice-secret-key
- SERVER_ADDRESS=:4002
- GRPC_SERVER_ADDRESS=4012
- USER_SERVICE_GRPC=skyros.userservice.svc:4011
depends_on:
- skyros.mysql
- skyros.userservice
networks:
- default
build:
context: .
dockerfile: Dockerfile-productservice
skyros.orderservice:
image: skyros-order-service:latest
container_name: skyros.orderservice.svc
command: /app/skyros-order-service
ports:
- "4003:4003"
restart: always
environment:
- MYSQL_HOST=skyros.mysql.database
- MYSQL_PORT=3306
- MYSQL_USER=root
- MYSQL_PASS=password
- MYSQL_DBNAME=orderservice
- SECRET_KEY=userservice-secret-key
- SERVER_ADDRESS=:4003
- USER_SERVICE_GRPC=skyros.userservice.svc:4011
- PRODUCT_SERVICE_GRPC=skyros.productservice.svc:4012
depends_on:
- skyros.mysql
- skyros.userservice
- skyros.productservice
networks:
- default
build:
context: .
dockerfile: Dockerfile-orderservice