-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
78 lines (73 loc) · 1.52 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
version: '3.6'
services:
db:
image: mongo:4.4.1
container_name: micro-db
volumes:
- ./docker/mongodb-data:/data
command: --serviceExecutor adaptive
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: auth
ports:
- 27017:27017
auth:
build:
context: .
dockerfile: ./apps/auth/Dockerfile
target: development
container_name: auth
command: npm run start:dev auth
ports:
- '3001:3001'
env_file:
- ./apps/auth/.env
depends_on:
- db
- rabbitmq
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
billing:
build:
context: .
dockerfile: ./apps/billing/Dockerfile
target: development
container_name: billing
command: npm run start:dev billing
ports:
- '3002:3002'
env_file:
- ./apps/billing/.env
depends_on:
- db
- rabbitmq
- auth
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
orders:
build:
context: .
dockerfile: ./apps/orders/Dockerfile
target: development
container_name: orders
command: npm run start:dev orders
env_file:
- ./apps/orders/.env
depends_on:
- db
- billing
- auth
- rabbitmq
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- '3003:3003'
rabbitmq:
image: rabbitmq:latest
container_name: message-broker
ports:
- '5672:5672'