forked from kyhsa93/nestjs-rest-cqrs-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (43 loc) · 857 Bytes
/
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
version: "3.7"
services:
proxy:
image: nginx:alpine
restart: always
ports:
- 80:80
links:
- nest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
command: [nginx-debug, '-g', 'daemon off;']
nest:
image: kyhsa93/nestjs-rest-cqrs-example
restart: always
env_file:
- .env
links:
- database
redis-master:
image: kyhsa93/redis-master
restart: always
redis-slave:
image: kyhsa93/redis-slave
restart: always
database:
image: mysql:5.7
restart: always
ports:
- 3306:3306
env_file:
- .env
volumes:
- ~/database/nest:/var/lib/mysql
rabbitmq:
image: rabbitmq:alpine
restart: always
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: root
RABBITMQ_DEFAULT_PASS: test