forked from reactioncommerce/reaction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (59 loc) · 1.88 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This docker-compose file is used to run the reaction app in docker for development
# The local files are mounted into the created container.
# Usage: docker-compose up [-d]
version: '3.4'
networks:
reaction-api:
external:
name: reaction-api
services:
devserver:
build:
context: .
dockerfile: Dockerfile-devserver
command: bash -c "npm install && npm run devserver"
depends_on:
- mongo
environment:
ROOT_URL: "http://localhost:3030"
MONGO_URL: "mongodb://mongo:27017/reaction"
BABEL_DISABLE_CACHE: 1 # This is needed to pick up changes to .graphql files. See https://www.npmjs.com/package/babel-plugin-inline-import#caveats
networks:
default:
reaction-api:
ports:
- "3030:3030"
volumes:
- .:/app
- devserver_node_modules:/app/node_modules # do not link node_modules in, and persist it between dc up runs
reaction:
build:
context: .
target: meteor-dev
command: bash -c "npm install && reaction" #TODO; Revert to Meteor NPM. See comment in Dockerfile about Meteor1.7 NPM version issue.
depends_on:
- mongo
environment:
METEOR_DISABLE_OPTIMISTIC_CACHING: 1
MONGO_URL: "mongodb://mongo:27017/reaction"
ROOT_URL: "http://localhost:3000"
BABEL_DISABLE_CACHE: 1 # This is needed to pick up changes to .graphql files. See https://www.npmjs.com/package/babel-plugin-inline-import#caveats
networks:
default:
reaction-api:
ports:
- "3000:3000"
volumes:
- .:/opt/reaction/src
- reaction_node_modules:/opt/reaction/src/node_modules # do not link node_modules in, and persist it between dc up runs
mongo:
image: mongo:3.6.3
command: mongod --storageEngine=wiredTiger
ports:
- "27017:27017"
volumes:
- mongo-db:/data/db
volumes:
devserver_node_modules:
mongo-db:
reaction_node_modules: