forked from reactioncommerce/example-storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (33 loc) · 931 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
34
35
36
37
# This docker-compose file is used to run the Example Storefront in Docker for development.
# The local files are mounted into the created container.
# Usage: docker-compose up [-d]
version: '3.4'
networks:
api:
external:
name: api.reaction.localhost
auth.reaction.localhost:
external:
name: auth.reaction.localhost
services:
web:
image: reactioncommerce/node-dev:10.16.3-v2
env_file:
- ./.env
networks:
api:
aliases:
- storefront
auth.reaction.localhost:
ports:
- 4000:4000
volumes:
- web-yarn:/home/node/.cache/yarn
- .:/usr/local/src/app
# Do not link in node_modules from the host
# This allows IDEs to run lint etc with native add-ons for host OS
# Without interfering with native add-ons in container
- empty_node_modules:/usr/local/src/app/node_modules
volumes:
web-yarn:
empty_node_modules: