-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.26 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
version: '3'
services:
user-register:
# container_name: nest-app-microservice-challenge
image: nestjs-api-dev:1.0.0
build:
context: .
target: development
dockerfile: ./apps/user-register/Dockerfile
command: npm run start:dev user-register
env_file:
- ./apps/user-register/.env
ports:
- 3000:3000
depends_on:
- mongodb
volumes:
- .:/src/
- /src/node_modules
restart: always
mailing:
# container_name: nest-app-microservice-challenge
image: nestjs-api-dev:1.0.0
build:
context: .
target: development
dockerfile: ./apps/mailing/Dockerfile
command: npm run start:dev mailing
env_file:
- ./apps/mailing/.env
depends_on:
- mongodb
volumes:
- .:/src/
- /src/node_modules
restart: always
mongodb:
image: mongo:latest
container_name: mongodb
volumes:
- ./database:/data/db
ports:
- 27017:27017
restart: always
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
env_file:
- ./rabbitmq.env
volumes:
- ./rabbitmq/data/:/var/lib/rabbitmq
- ./rabbitmq/log/:/var/log/rabbitmq
restart: always