forked from reactioncommerce/reaction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (48 loc) · 1.25 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
# 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:
api:
external:
name: api.reaction.localhost
auth:
external:
name: auth.reaction.localhost
streams:
external:
name: streams.reaction.localhost
services:
reaction:
build:
context: .
target: meteor-dev
command: bash -c "time meteor npm install --no-audit && node ./.reaction/waitForMongo.js && node --experimental-modules ./.reaction/run/index.mjs"
depends_on:
- mongo
env_file:
- ./.env
networks:
default:
api:
auth:
ports:
- "3000:3000"
- "9229:9229"
volumes:
- .:/opt/reaction/src:cached
- ./.meteor/local:/opt/reaction/src/.meteor/local:delegated
- 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 --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
networks:
default:
streams:
ports:
- "27017:27017"
volumes:
- mongo-db:/data/db
volumes:
mongo-db:
reaction_node_modules: