forked from Laboratoria/SAP003-burger-queen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 818 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
version: '3.4'
services:
dev:
image: node:12-alpine
container_name: bq-api-node_dev
command: sh -c "npm run migrate && npm run dev"
working_dir: /app
ports:
- "3000:3000"
volumes:
- ./:/app:cached
networks:
- bq-network
depends_on:
- db
test:
image: node:12-alpine
container_name: bq-api-node_test
command: sh -c "npm run migrate && npm run test"
working_dir: /app
ports:
- "3001:3000"
volumes:
- ./:/app:cached
networks:
- bq-network
depends_on:
- db
db:
image: postgres
container_name: bq-api-node_db
ports:
- "5432:5432"
volumes:
- database:/var/lib/postgresql/data
networks:
- bq-network
volumes:
database:
networks:
bq-network:
driver: bridge