diff --git a/.gitignore b/.gitignore index d308d35..ab75de6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ build/ server/config.js server/package-lock.json +server/docker-compose.yml diff --git a/server/README.md b/server/README.md index 1b89815..944c458 100644 --- a/server/README.md +++ b/server/README.md @@ -64,11 +64,12 @@ fields: - `modified` (number): Optional timestamp (seconds since the epoch, in UTC) when the annotation was last modified. -# run pdfdraw server in a docker container using docker-compose. +# Run pdfdraw server in a docker container using docker-compose. -all settings are exposed into enviroment variables. That means you are able to config the backend server in [docker-compose.yml](docker-compose.yml) yaml file by editing the corresponding enviroment variables. +All settings are exposed into enviroment variables. That means you are able to config the backend server in [docker-compose.yml](docker-compose.yml.in) yaml file by editing the corresponding enviroment variables. -Based on your docker setup you still need to edit a few lines in the [docker-compose.yml](docker-compose.yml) file for networking. +Save `docker-compose.yml.in` to `docker-compose.yml` and make changes if needed. +Based on your docker setup you still need to edit a few lines in the `docker-compose.yml` file for networking. For example by exposing ports: diff --git a/server/docker-compose.yml b/server/docker-compose.yml.in old mode 100755 new mode 100644 similarity index 65% rename from server/docker-compose.yml rename to server/docker-compose.yml.in index c6778a6..1238eb5 --- a/server/docker-compose.yml +++ b/server/docker-compose.yml.in @@ -4,11 +4,17 @@ services: build: context: . dockerfile: docker/Dockerfile + environment: port: 8080 secret: 'the-shared-secret' + #allow_invalid_certificates: null + #use_auto_ecdh_curve: null + #cmd_pdftk: '' + #cmd_svg2pdf: '' + #ports: - # - '8080:8080' + #- '8080:8080' #networks: # default: