Adds Dockerfile, changes config.js to use type:file
This commit is contained in:
parent
ad7702aaf4
commit
0bf0fbfe58
|
@ -0,0 +1,2 @@
|
||||||
|
node_modules
|
||||||
|
npm-debug.log
|
|
@ -0,0 +1,21 @@
|
||||||
|
FROM node:carbon
|
||||||
|
|
||||||
|
LABEL org.label-schema.schema-version = "1.0.0"
|
||||||
|
LABEL org.label-schema.name = "hastebin"
|
||||||
|
LABEL org.label-schema.description = "Open-Source PasteBin Written in Node.js"
|
||||||
|
LABEL org.label-schema.vcs-url = "https://github.com/cmattoon/haste-server"
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# Capture dependencies in their own layer
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
VOLUME ["/data"]
|
||||||
|
|
||||||
|
CMD ["npm", "start"]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
"host": "0.0.0.0",
|
"host": "0.0.0.0",
|
||||||
"port": 7777,
|
"port": 80,
|
||||||
|
|
||||||
"keyLength": 10,
|
"keyLength": 10,
|
||||||
|
|
||||||
|
@ -33,11 +33,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"storage": {
|
"storage": {
|
||||||
"type": "redis",
|
"type": "file",
|
||||||
"host": "0.0.0.0",
|
"path": "/data"
|
||||||
"port": 6379,
|
|
||||||
"db": 2,
|
|
||||||
"expire": 2592000
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"documents": {
|
"documents": {
|
||||||
|
|
Loading…
Reference in New Issue