Corrections to get config updating and effective

This commit is contained in:
Chris Thompson 2022-12-15 15:05:02 -05:00
parent 6139cff626
commit 9e88945b9b
2 changed files with 7 additions and 4 deletions

View File

@ -26,6 +26,7 @@ services:
- CMD_DEFAULT_PERMISSION - CMD_DEFAULT_PERMISSION
- CMD_EMAIL - CMD_EMAIL
- CMD_SESSION_LIFE - CMD_SESSION_LIFE
- DOCUMENT_MAX_LENGTH
depends_on: depends_on:
- db - db
networks: networks:
@ -42,7 +43,7 @@ services:
mode: 0555 mode: 0555
- source: config_json - source: config_json
target: /files/config.json target: /files/config.json
mode: 0700 mode: 0555
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure

View File

@ -1,5 +1,7 @@
{ {
{{ if (env "DOCUMENT_MAX_LENGTH") }} {{ if (env "DOCUMENT_MAX_LENGTH") }}
"documentMaxLength": {{ env "DOCUMENT_MAX_LENGTH" }} "production": {
{{ end }} "documentMaxLength": {{ env "DOCUMENT_MAX_LENGTH" }}
}
{{ end }}
} }