-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (83 loc) · 2.13 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (83 loc) · 2.13 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
version: "3.8"
services:
client:
build: ./client
ports:
- "4173:4173"
command: npm run preview
env_file:
- ./client/.env
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 10s
timeout: 5s
retries: 5
order-service:
build: ./server/order-service
ports:
- "3005:3005"
env_file:
- ./server/order-service/.env
depends_on:
rabbitmq:
condition: service_healthy
payment-service:
build: ./server/payment-service
command: ["node", "dist/service/payment-queue-consumer.js"]
depends_on:
rabbitmq:
condition: service_healthy
restaurant-service-consumer:
build: ./server/restaurant-service
command: ["node", "dist/services/restaurant-queue-consumer.js"]
depends_on:
rabbitmq:
condition: service_healthy
restaurant-service:
build: ./server/restaurant-service
ports:
- "3003:3003"
command: ["node", "dist/index.js"]
depends_on:
rabbitmq:
condition: service_healthy
notification-queue:
build: ./server/notification-service
command: ["node", "dist/services/notification-queue-consumer.js"]
env_file:
- ./server/notification-service/.env
depends_on:
rabbitmq:
condition: service_healthy
notification-prepared:
build: ./server/notification-service
command: ["node", "dist/services/notification-order-prepared-consumer.js"]
env_file:
- ./server/notification-service/.env
depends_on:
rabbitmq:
condition: service_healthy
notification-ready:
build: ./server/notification-service
command: ["node", "dist/services/notification-order-ready-consumer.js"]
env_file:
- ./server/notification-service/.env
depends_on:
rabbitmq:
condition: service_healthy
postgres:
image: postgres
restart: always
env_file:
- .env
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "5432:5432"