-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (69 loc) · 1.4 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
version: "3"
services:
product-service:
image: product-service
build:
context: product_svc
dockerfile: Dockerfile
ports:
- "50052:50052"
environment:
- DB_HOST=host.docker.internal
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=0
- DB_NAME=product_svc
depends_on:
- postgre
order-service:
image: order-service
build:
context: order_svc
dockerfile: Dockerfile
ports:
- "50053:50053"
environment:
- DB_HOST=host.docker.internal
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=0
- DB_NAME=order_svc
depends_on:
- postgre
auth-service:
image: auth-service
build:
context: auth_svc
dockerfile: Dockerfile
ports:
- "50051:50051"
environment:
- DB_HOST=host.docker.internal
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=0
- DB_NAME=auth_svc
depends_on:
- postgre
api-gateway:
image: api-gateway
build:
context: api_gateway
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- auth-service
- product-service
- order-service
postgre:
image: postgres:latest
ports:
- "5432:5432/tcp"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 0
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data: