-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.old
79 lines (72 loc) · 1.67 KB
/
docker-compose.yml.old
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
version: '3'
services:
api-gateway:
build:
context: ./api-gateway
ports:
- "3001:3000"
depends_on:
- auth-svc
- order-svc
- product-svc
postgres_auth:
build:
context: ./storage
dockerfile: Dockerfile
environment:
POSTGRES_DB: user
POSTGRES_USER: auth_user
POSTGRES_PASSWORD: [email protected]
ports:
- "5433:5432" # Use a different port for each PostgreSQL instance
volumes:
- postgres_auth_data:/var/lib/postgresql/data
postgres_order:
build:
context: ./storage
dockerfile: Dockerfile
environment:
POSTGRES_DB: order
POSTGRES_USER: order_user
POSTGRES_PASSWORD: [email protected]
ports:
- "5434:5432" # Use a different port for each PostgreSQL instance
volumes:
- postgres_order_data:/var/lib/postgresql/data
postgres_product:
build:
context: ./storage
dockerfile: Dockerfile
environment:
POSTGRES_DB: product
POSTGRES_USER: product_user
POSTGRES_PASSWORD: [email protected]
ports:
- "5435:5432" # Use a different port for each PostgreSQL instance
volumes:
- postgres_product_data:/var/lib/postgresql/data
auth-svc:
build:
context: ./auth-svc
ports:
- "8081:50051"
depends_on:
- postgres_auth
order-svc:
build:
context: ./order-svc
ports:
- "8082:50053"
depends_on:
- postgres_order
product-svc:
build:
context: ./product-svc
ports:
- "8083:50052"
depends_on:
- postgres_product
volumes:
postgres_auth_data:
postgres_order_data:
postgres_product_data: