diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..016abe9 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,12 @@ +node_modules +.vscode +data +data-test + +*.swp +*.swo +*.DS_Store + +npm-debug.log +static/*.min.js +config.js \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 10254a8..54d7e86 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + restart: unless-stopped + +volumes: + haste-data: \ No newline at end of file