-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (85 loc) · 2.29 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
transaction_app:
build: ./service-transaction
env_file:
- ./service-transaction/.env
environment:
DATABASE_URL: postgres://postgres:123456@postgres_transaction:5432/transaction-db
RABBITMQ_URL: amqp://rabbitmq:5672
depends_on:
- postgres_transaction
- rabbitmq
volumes:
- .:/app
balance_app:
build: ./service-balance
env_file:
- ./service-balance/.env
environment:
DATABASE_URL: postgres://postgres:123456@postgres_balance:5432/balance-db
RABBITMQ_URL: amqp://rabbitmq:5672
depends_on:
- postgres_balance
- rabbitmq
volumes:
- .:/app
statement_app:
build: ./service-statement
env_file:
- ./service-statement/.env
environment:
DATABASE_URL: postgres://postgres:123456@postgres_statement:5432/statement-db
RABBITMQ_URL: amqp://rabbitmq:5672
depends_on:
- postgres_statement
- rabbitmq
volumes:
- .:/app
api_gateway_app:
build: ./api-gateway
environment:
RABBITMQ_URL: amqp://rabbitmq:5672
depends_on:
- postgres_statement
- rabbitmq
- transaction_app
- balance_app
volumes:
- .:/app
ports:
- "3000:3000"
postgres_statement:
image: postgres:16.4-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123456
POSTGRES_DB: statement-db
ports:
- "5435:5432"
volumes:
- ./service-statement/src/infra/database/prisma/create-database.sql:/docker-entrypoint-initdb.d/init.sql
postgres_balance:
image: postgres:16.4-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123456
POSTGRES_DB: balance-db
ports:
- "5434:5432"
volumes:
- ./service-balance/src/infra/database/prisma/create-database.sql:/docker-entrypoint-initdb.d/init.sql
postgres_transaction:
image: postgres:16.4-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123456
POSTGRES_DB: transaction-db
ports:
- "5433:5432"
volumes:
- ./service-transaction/src/infra/database/prisma/create-database.sql:/docker-entrypoint-initdb.d/init.sql
rabbitmq:
image: rabbitmq:3-management
ports:
- 5672:5672
- 15672:15672