diff --git a/.gitignore b/.gitignore index a865156..d6e53cd 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules *.swo data *.DS_Store +.idea \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..246ed2d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM centos:centos6 +RUN yum install -y epel-release +RUN yum install -y nodejs npm + +# Create app directory +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +# Install app dependencies +COPY package.json /usr/src/app/ +RUN npm install + +# Bundle app source +COPY . /usr/src/app + +EXPOSE 7777 +CMD [ "npm", "start" ] + diff --git a/config.js b/config.js index 52ad004..d3e5048 100644 --- a/config.js +++ b/config.js @@ -33,15 +33,11 @@ }, "storage": { - "type": "redis", - "host": "0.0.0.0", - "port": 6379, - "db": 2, - "expire": 2592000 + "path": "./data", + "type": "file" }, "documents": { "about": "./about.md" } - }