Skip to content

Commit

Permalink
add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
suntao committed Mar 18, 2017
1 parent 777d7a5 commit 2acc92c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
.vscode
node_modules
11 changes: 11 additions & 0 deletions Dockerfile
@@ -0,0 +1,11 @@
FROM node:6-onbuild

RUN mkdir -p /usr/src/app
COPY . /usr/src/app
WORKDIR /usr/src/app

RUN yarn

EXPOSE 3999

CMD [ "npm", "start" ]
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -8,7 +8,7 @@ in dev now. document will be wrote later, thanks

## Architecture

![arch](https://res.cloudinary.com/digf90pwi/image/upload/v1489759745/discoverer_awfc33.png)
![arch](https://res.cloudinary.com/digf90pwi/image/upload/v1489805512/discoverer_1_qzlptg.png)

## install

Expand Down Expand Up @@ -92,7 +92,7 @@ All config items can be configured by system env variables
1. USE_AUTH, default is false, set "true" will enable http digest auth
1. AUTH_USER, avoid server access by un auth user, system will generte a random str if it not set
1. AUTH_PASS, avoid server access by un auth user, system will generte a random str if it not set
1. MONGO_CONNECT_URI, **required**, default is mongodb://localhost/discoverer
1. CONNECT_URI, **required**, default is mongodb://localhost/discoverer
1. LISTEN_HOST, default is 0.0.0.0
1. PORT, default is 3999
1. CHECK_INTERVAL, default is 2s, 服务器会每隔几秒检测数据库中是否有超时的instance,有的话就会移除记录
Expand Down

0 comments on commit 2acc92c

Please sign in to comment.