rename docker-compose.yml file to docker-compose.yml.in, add all enviroment variabls to docker-compose.yml.in and a few Trailing whitespace too, update server/Reamdme.md
This commit is contained in:
parent
5602150ef2
commit
0025cc774c
3 changed files with 12 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@
|
|||
build/
|
||||
server/config.js
|
||||
server/package-lock.json
|
||||
server/docker-compose.yml
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
8
server/docker-compose.yml → server/docker-compose.yml.in
Executable file → Normal file
8
server/docker-compose.yml → server/docker-compose.yml.in
Executable file → Normal file
|
|
@ -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:
|
||||
Loading…
Reference in a new issue