-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (75 loc) · 1.63 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
services:
mysql:
build:
dockerfile: docker/mysql/Dockerfile
environment:
MYSQL_ROOT_PASSWORD: root_pwd
MYSQL_DATABASE: ecommerce
MYSQL_USER: ecom
MYSQL_PASSWORD: ecom_pwd
ports:
- "3306:3306"
volumes:
- ./docker/mysql/data:/var/lib/mysql # Adjusted to a relative path
networks:
- backend
catalog-grpc-server:
build:
context: .
dockerfile: docker/service/catalog/Dockerfile
ports:
- "50051:50051"
networks:
- backend
environment:
- DB_USER=root
- DB_PASSWORD=root_pwd
- DB_HOST=mysql
- DB_PORT=3306
- DB_NAME=ecommerce
depends_on:
- mysql
sale-grpc-server:
build:
context: .
dockerfile: docker/service/sale/Dockerfile
ports:
- "50052:50052"
networks:
- backend
environment:
- CATALOG_GRPC_SERVER=host.docker.internal:50051
depends_on:
- mysql
node-webserver:
build:
context: .
dockerfile: docker/web-server/Dockerfile
ports:
- "3000:3000"
environment:
- CATALOG_GRPC_SERVER=host.docker.internal:50051
- QUOTE_GRPC_SERVER=host.docker.internal:50052
- SERVER_PORT=3000
networks:
- backend
- frontend
depends_on:
- catalog-grpc-server
angular-app:
build:
context: .
dockerfile: docker/frontend/Dockerfile
ports:
- "4200:4200"
environment:
- NODE_SERVER=host.docker.internal:3000
networks:
- frontend
depends_on:
- node-webserver
networks:
backend:
frontend:
volumes:
mysql-data: