-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
39 lines (34 loc) · 1.03 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
33
34
35
36
37
38
39
version: '3.7'
# This block is used for inclusion in the environment section of each container.
x-volumes:
&default-volumes
# Define all volumes you would like to have real-time mounted into the docker containers
volumes:
- 'projectroot:/home/node/app'
- ~/.npmrc:/home/node/.npmrc
x-user:
&default-user
# The default user under which the containers should run. Change this if you are on linux and run with another user than id `1000`
user: '1000'
services:
node:
# Remember to keep version updated with the .nvmrc file.
# The .nvmrc file is used in Github Actions and for "dockerless" development.
image: node:20
user: node
init: true
working_dir: /home/node/app
<<: [*default-volumes, *default-user]
expose:
- 80
command: 'yarn dev'
environment:
VIRTUAL_HOST: dpl-design-system.docker
VIRTUAL_PORT: 6006
STORYBOOK_CLIENT_ID: bdc1d425-9117-4867-acb9-c7307ddc2e0f
volumes:
projectroot:
driver_opts:
type: none
device: $PWD
o: bind