-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 989 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
version: '3'
services:
api:
build: .
links:
- rabbit
- db
- metabase
volumes:
- ./src:/api/src
- ./test:/api/test
- ./config/:/api/config
- ./.eslintrc.js:/api/.eslintrc.js
ports:
- $MR_API_PORT:4242
environment:
- VHOST=$DOCKER_IP
- NODE_ENV
container_name: mr_api_$MR_API_PORT
rabbit:
image: rabbitmq:latest
restart: always
ports:
- 5672:5672
environment:
- RABBITMQ_DEFAULT_USER=rabbituser
- RABBITMQ_DEFAULT_PASS=rabbitpass
db:
image: postgres
restart: always
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgrespass
- POSTGRES_DB=musicRoom
volumes:
pgdata: