1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-12-27 06:30:11 +01:00

Merge changes from niekcandaele/feature/docker-support

* Add .dockerignore
* Add docker-compose.yml version number
* Use docker-managed volume instead of directory for files

Co-authored-by: niekcandaele <22315101+niekcandaele@users.noreply.github.com>
This commit is contained in:
Manuel 2021-02-12 15:43:32 +01:00
commit 8922925491
Signed by: Manuel
GPG key ID: 4085037435E1F07A
2 changed files with 18 additions and 2 deletions

12
.dockerignore Normal file
View file

@ -0,0 +1,12 @@
node_modules
.vscode
data
data-test
*.swp
*.swo
*.DS_Store
npm-debug.log
static/*.min.js
config.js

View file

@ -1,3 +1,4 @@
version: "3.0"
services:
haste-server:
build:
@ -8,7 +9,7 @@ services:
network_mode: "bridge"
volumes:
# Default place to put files, can be removed with other storage system
- ./data:/usr/src/app/data:rw
- haste-data:/usr/src/app/data:rw
# Create config.js from the example config and make changes
- ./config.js:/usr/src/app/config.js:ro
@ -18,4 +19,7 @@ services:
ports:
- "127.0.0.1:7777:7777/tcp"
- "::1:7777:7777/tcp"
restart: unless-stopped
restart: unless-stopped
volumes:
haste-data: