forked from reactioncommerce/reaction-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
27 lines (25 loc) · 892 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
version: '3.4'
services:
web:
build:
context: .
args:
BUILD_ENV: "development"
command: [sh, -c, "yarn start"]
env_file:
- ./.env
environment:
REACTION_APP_NAME: "reaction-docs.web"
ports:
- 4242:4242
- 35729:35729
volumes:
- $HOME/.cache/yarn-offline-mirror:/home/node/.cache/yarn-offline-mirror
- web-yarn:/home/node/.cache/yarn
- .:/usr/local/src/reaction-app # link everything from the root folder on the host machine into the container
- empty_node_modules:/usr/local/src/reaction-app/node_modules # except do not link the host node_modules in because it will override the container node_modules
- node_modules:/usr/local/src/node_modules # persist the node_modules that is used, which is up one folder level in the container
volumes:
web-yarn:
empty_node_modules:
node_modules: