File tree Expand file tree Collapse file tree 4 files changed +30
-1
lines changed
Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ . *?
Original file line number Diff line number Diff line change 1+ FROM node:6.9.2-alpine
2+
3+ ARG APP_DIR=/opt/app
4+ WORKDIR $APP_DIR
5+
6+ COPY package.json $APP_DIR/
7+ RUN npm install
8+
9+ COPY lib/ $APP_DIR/lib/
10+ COPY app.js $APP_DIR/
11+ COPY config.example.js $APP_DIR/config.js
12+
13+ CMD ["node" , "./app.js" ]
Original file line number Diff line number Diff line change 1010 ***************************************************/
1111
1212// Your Firebase instance where we will listen and write search results
13- exports . FB_URL = 'https://<YOUR APP>.firebaseio.com' ;
13+ exports . FB_URL = process . env . FB_URL || 'https://<YOUR APP>.firebaseio.com' ;
1414
1515// The path in your Firebase where clients will write search requests
1616exports . FB_REQ = process . env . FB_REQ || 'search/request' ;
Original file line number Diff line number Diff line change 1+ version : " 2"
2+
3+ services :
4+ flashlight :
5+ build : .
6+ image : flashlight:dev
7+ environment :
8+ FB_URL : https://my-project.firebaseio.com
9+ ES_HOST : elasticsearch
10+ NODE_ENV : production
11+ volumes :
12+ - ./service-account.json:/opt/app/service-account.json
13+
14+ elasticsearch :
15+ image : elasticsearch:5.1.1-alpine
You can’t perform that action at this time.
0 commit comments