-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
90 lines (83 loc) · 1.84 KB
/
docker-compose.yaml
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
version: '3'
services:
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.7.4-management-alpine
ports:
- 5672:5672
- 15672:15672
catalogue:
container_name: catalogue
build:
context: ./src/Contexts
dockerfile: catalogue/Dockerfile
ports:
- "8080:3000"
command: npm run build
environment:
- PORT=3000
- MESSAGE_BUS=amqp://rabbitmq
links:
- rabbitmq
- catalogue-db
depends_on:
- catalogue-db
catalogue-db:
container_name: catalogue-db
build: ./src/Contexts/catalogue/app/db
ports:
- "5433:5432"
environment:
- POSTGRES_DB=Catalogue
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
auth-management:
container_name: auth-management
build:
context: ./src/Contexts
dockerfile: auth-management/Dockerfile
ports:
- "8081:3000"
command: npm run build
environment:
- PORT=3000
- MESSAGE_BUS=amqp://rabbitmq
links:
- rabbitmq
- auth-db
depends_on:
- auth-db
auth-db:
container_name: auth-db
build: ./src/Contexts/auth-management/app/db
ports:
- "5434:5432"
environment:
- POSTGRES_DB=Auth
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
user-management:
container_name: user-management
build:
context: ./src/Contexts
dockerfile: user-management/Dockerfile
ports:
- "8082:3000"
command: npm run build
environment:
- PORT=3000
- MESSAGE_BUS=amqp://rabbitmq
links:
- rabbitmq
- user-db
depends_on:
- user-db
user-db:
container_name: user-db
build: ./src/Contexts/user-management/app/db
ports:
- "5435:5432"
environment:
- POSTGRES_DB=User
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres