mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-24 15:16:27 -07:00
add Docker support
This commit is contained in:
parent
9b0a5ff0a3
commit
b0aac83c62
3 changed files with 18 additions and 6 deletions
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FROM node:alpine3.10
|
||||||
|
COPY . /srv
|
||||||
|
WORKDIR /srv
|
||||||
|
RUN npm install
|
||||||
|
CMD "npm" "start"
|
13
README.md
13
README.md
|
@ -22,11 +22,20 @@ STDOUT. Check the README there for more details and usages.
|
||||||
|
|
||||||
## Tested Browsers
|
## Tested Browsers
|
||||||
|
|
||||||
* Firefox 8
|
* Firefox 74
|
||||||
* Chrome 17
|
* Chrome 17
|
||||||
* Safari 5.3
|
* Safari 5.3
|
||||||
|
|
||||||
## Installation
|
## Docker installation
|
||||||
|
|
||||||
|
`docker build -t haste .`
|
||||||
|
|
||||||
|
`docker run -ti -p 7777:7777 haste`
|
||||||
|
|
||||||
|
open your browser to localhost:7777
|
||||||
|
|
||||||
|
|
||||||
|
## Manual Installation
|
||||||
|
|
||||||
1. Download the package, and expand it
|
1. Download the package, and expand it
|
||||||
2. Explore the settings inside of config.js, but the defaults should be good
|
2. Explore the settings inside of config.js, but the defaults should be good
|
||||||
|
|
|
@ -33,10 +33,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"storage": {
|
"storage": {
|
||||||
"type": "memcached",
|
"type": "file",
|
||||||
"host": "127.0.0.1",
|
"path": "./data"
|
||||||
"port": 11211,
|
|
||||||
"expire": 2592000
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"documents": {
|
"documents": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue