mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-27 03:10:18 +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:
commit
8922925491
2 changed files with 18 additions and 2 deletions
12
.dockerignore
Normal file
12
.dockerignore
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
node_modules
|
||||||
|
.vscode
|
||||||
|
data
|
||||||
|
data-test
|
||||||
|
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*.DS_Store
|
||||||
|
|
||||||
|
npm-debug.log
|
||||||
|
static/*.min.js
|
||||||
|
config.js
|
|
@ -1,3 +1,4 @@
|
||||||
|
version: "3.0"
|
||||||
services:
|
services:
|
||||||
haste-server:
|
haste-server:
|
||||||
build:
|
build:
|
||||||
|
@ -8,7 +9,7 @@ services:
|
||||||
network_mode: "bridge"
|
network_mode: "bridge"
|
||||||
volumes:
|
volumes:
|
||||||
# Default place to put files, can be removed with other storage system
|
# 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
|
# Create config.js from the example config and make changes
|
||||||
- ./config.js:/usr/src/app/config.js:ro
|
- ./config.js:/usr/src/app/config.js:ro
|
||||||
|
@ -18,4 +19,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:7777:7777/tcp"
|
- "127.0.0.1:7777:7777/tcp"
|
||||||
- "::1:7777:7777/tcp"
|
- "::1:7777:7777/tcp"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
haste-data:
|
Loading…
Reference in a new issue