-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml.backup
More file actions
106 lines (100 loc) · 2.33 KB
/
docker-compose.yaml.backup
File metadata and controls
106 lines (100 loc) · 2.33 KB
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
services:
postgres:
image: postgres:15-alpine
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
dashboard-service:
build: ./dashboard-service
container_name: dashboard-service
ports:
- "8080:8080"
environment:
- PORT=8080
- CATALOG_SERVICE_URL=http://catalog-service:3001
- CART_SERVICE_URL=http://cart-service:3002
- ORDER_SERVICE_URL=http://order-service:3003
- PAYMENT_SERVICE_URL=http://payment-service:3004
depends_on:
- catalog-service
- cart-service
- order-service
- payment-service
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
restart: always
catalog-service:
build: ./services/catalog-service
container_name: catalog-service
ports:
- "8001:3001"
environment:
- PORT=3001
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=catalog
depends_on:
postgres:
condition: service_healthy
restart: always
cart-service:
build: ./services/cart-service
container_name: cart-service
ports:
- "8002:3002"
environment:
- PORT=3002
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=cart
depends_on:
postgres:
condition: service_healthy
restart: always
order-service:
build: ./services/order-service
container_name: order-service
ports:
- "8003:3003"
environment:
- PORT=3003
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=orders
depends_on:
postgres:
condition: service_healthy
restart: always
payment-service:
build: ./services/payment-service
container_name: payment-service
ports:
- "8004:3004"
environment:
- PORT=3004
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=payments
depends_on:
postgres:
condition: service_healthy
restart: always
volumes:
postgres_data: