forked from nathydre21/nepa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.microservices.yml
More file actions
124 lines (115 loc) · 3.03 KB
/
docker-compose.microservices.yml
File metadata and controls
124 lines (115 loc) · 3.03 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.8'
services:
user-service:
build:
context: .
dockerfile: microservices/user-service/Dockerfile
ports:
- "3001:3001"
environment:
- USER_SERVICE_PORT=3001
- DATABASE_URL=${USER_DATABASE_URL}
depends_on:
- postgres-user
payment-service:
build:
context: .
dockerfile: microservices/payment-service/Dockerfile
ports:
- "3002:3002"
environment:
- PAYMENT_SERVICE_PORT=3002
- DATABASE_URL=${PAYMENT_DATABASE_URL}
depends_on:
- postgres-payment
billing-service:
build:
context: .
dockerfile: microservices/billing-service/Dockerfile
ports:
- "3003:3003"
environment:
- BILLING_SERVICE_PORT=3003
- DATABASE_URL=${BILLING_DATABASE_URL}
depends_on:
- postgres-billing
notification-service:
build:
context: .
dockerfile: microservices/notification-service/Dockerfile
ports:
- "3004:3004"
environment:
- NOTIFICATION_SERVICE_PORT=3004
- DATABASE_URL=${NOTIFICATION_DATABASE_URL}
depends_on:
- postgres-notification
document-service:
build:
context: .
dockerfile: microservices/document-service/Dockerfile
ports:
- "3005:3005"
environment:
- DOCUMENT_SERVICE_PORT=3005
- DATABASE_URL=${DOCUMENT_DATABASE_URL}
depends_on:
- postgres-document
utility-service:
build:
context: .
dockerfile: microservices/utility-service/Dockerfile
ports:
- "3006:3006"
environment:
- UTILITY_SERVICE_PORT=3006
- DATABASE_URL=${UTILITY_DATABASE_URL}
depends_on:
- postgres-utility
analytics-service:
build:
context: .
dockerfile: microservices/analytics-service/Dockerfile
ports:
- "3007:3007"
environment:
- ANALYTICS_SERVICE_PORT=3007
- DATABASE_URL=${ANALYTICS_DATABASE_URL}
depends_on:
- postgres-analytics
webhook-service:
build:
context: .
dockerfile: microservices/webhook-service/Dockerfile
ports:
- "3008:3008"
environment:
- WEBHOOK_SERVICE_PORT=3008
- DATABASE_URL=${WEBHOOK_DATABASE_URL}
depends_on:
- postgres-webhook
api-gateway:
build:
context: .
dockerfile: microservices/api-gateway/Dockerfile
ports:
- "3000:3000"
environment:
- API_GATEWAY_PORT=3000
- USER_SERVICE_URL=http://user-service:3001
- PAYMENT_SERVICE_URL=http://payment-service:3002
- BILLING_SERVICE_URL=http://billing-service:3003
- NOTIFICATION_SERVICE_URL=http://notification-service:3004
- DOCUMENT_SERVICE_URL=http://document-service:3005
- UTILITY_SERVICE_URL=http://utility-service:3006
- ANALYTICS_SERVICE_URL=http://analytics-service:3007
- WEBHOOK_SERVICE_URL=http://webhook-service:3008
depends_on:
- user-service
- payment-service
- billing-service
- notification-service
- document-service
- utility-service
- analytics-service
- webhook-service