forked from reactioncommerce/reaction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.34 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
# 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
services:
reaction:
build:
context: .
target: meteor-dev
command: bash -c "meteor npm install && node ./.reaction/waitForMongo.js && reaction"
depends_on:
- mongo
environment:
MONGO_URL: "mongodb://mongo:27017/reaction"
MONGO_OPLOG_URL: "mongodb://mongo:27017/local"
ROOT_URL: "http://localhost:3000"
HYDRA_ADMIN_URL: "http://hydra:4445"
HYDRA_TOKEN_URL: "http://hydra:4444/oauth2/token"
HYDRA_OAUTH2_INTROSPECT_URL: "http://hydra:4445/oauth2/introspect"
OAUTH2_CLIENT_DOMAINS: "http://localhost:4000"
networks:
default:
api:
auth:
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 --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
ports:
- "27017:27017"
volumes:
- mongo-db:/data/db
volumes:
mongo-db:
reaction_node_modules: