-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
29 lines (26 loc) · 994 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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
image: meemoo-react-components
container_name: meemoo-react-components
ports:
- 3020:3020
networks:
- meemoo-react-components-network
volumes:
- .:/opt/react-app/app:delegated
# bind-mounting these two files in will let you add packages during development without rebuilding
- ./package.json:/opt/react-app/package.json
- ./package-lock.json:/opt/react-app/package-lock.json
# this is a workaround to prevent host node_modules from accidently getting mounted in container
# in case you want to use node/npm both outside container for test/lint etc. and also inside container
# this will overwrite the default node_modules dir in container so it won't conflict with our
# /opt/react-app/node_modules location.
- notused:/opt/react-app/app/node_modules
networks:
meemoo-react-components-network:
volumes:
notused: