-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
19 lines (19 loc) · 870 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
19 lines (19 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: '3' # version of docker compose
services: # the containers we are building
web: # the name of the container
build:
context: . # reference the current working directory
dockerfile: Dockerfile.dev #explicitly call the dev dockerfile
ports:
- "3000:3000"
volumes:
- /app/node_modules # do not try to mount outside the container
- .:/app # mount the current directory to /app inside the container
tests:
build:
context: . # reference the current working directory
dockerfile: Dockerfile.dev #explicitly call the dev dockerfile
volumes:
- /app/node_modules # do not try to mount outside the container
- .:/app # mount the current directory to /app inside the container
command: ["npm", "run", "test"]