mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 13:53:28 -07:00
Added Dockerfile + Change storage default to 'file'
This commit is contained in:
parent
0209375865
commit
2d4402b90c
3 changed files with 21 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ node_modules
|
||||||
*.swo
|
*.swo
|
||||||
data
|
data
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
.idea
|
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -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" ]
|
||||||
|
|
|
@ -33,15 +33,11 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"storage": {
|
"storage": {
|
||||||
"type": "redis",
|
"path": "./data",
|
||||||
"host": "0.0.0.0",
|
"type": "file"
|
||||||
"port": 6379,
|
|
||||||
"db": 2,
|
|
||||||
"expire": 2592000
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"documents": {
|
"documents": {
|
||||||
"about": "./about.md"
|
"about": "./about.md"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue