-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 958 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
version: '3.4'
services:
site:
build:
context: .
target: test-target
args:
npm_install_command: install
volumes:
# This bind mount allows changes on the host file system to affect the container.
# Saving a code file can cause an incremental build, a hot reload in the browser,
# and a reconnection of the debugger.
# The mount is in delegated mode:
# Changes on the host, like saving a code file, immediately affect the container.
# Changes within the container, like build output, make their way back to the host,
# but are not strictly synchronized.
- .:/usr/src/app:delegated
ports:
- 3000:3000
- 9229:9229
command: npm run dev
storybook:
build:
context: .
target: test-target
args:
npm_install_command: install
volumes:
- .:/usr/src/app:delegated
ports:
- 6006:6006
command: npm run storybook