-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (32 loc) · 1.01 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
version: '3'
services:
# if the container exits with 0 immediately run with docker-compose up --build
web:
# fix issue where docker container exits with 0 immediately
stdin_open: true
# may be required if windows is not detecting file changes in the react app
#environment:
# - CHOKIDAR_USEPOLLING=true
build:
# specify the directory in which our Dockerfile will exist
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
volumes:
- /app/node_modules
# map curr dir to the /app dir inside the container
- .:/app
tests:
# fix issue where docker container exits with 0 immediately
stdin_open: true
build:
# specify the directory in which our Dockerfile will exist
context: .
dockerfile: Dockerfile.dev
volumes:
- /app/node_modules
# map curr dir to the /app dir inside the container
- .:/app
# overwrite the starting command defined in the Dockerfile.dev
command: ["npm", "run", "test"]