Uuugh72

Untitled

Dec 20th, 2025 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.02 KB | Source Code | 0 0
  1. Thank you. Neat idea. But wouldn't it still expose SECRET_TOKEN? BTW. I discovered that Sync-in (like MySQL) supports the *_FILE convention. So I was able to use
  2. services:
  3.     secrets:
  4.      - auth_encryption_key
  5.       - onlyoffice_jwt_secret
  6.     environment:
  7.      - SYNCIN_AUTH_ENCRYPTIONKEY_FILE=/run/secrets/auth_encryption_key
  8.       - SYNCIN_APPLICATIONS_FILES_ONLYOFFICE_SECRET_FILE=/run/secrets/onlyoffice_jwt_secret
  9. ...
  10. secrets:
  11.   auth_encryption_key:
  12.     file: ./.secrets/auth_encryption_key.txt
  13.   onlyoffice_jwt_secret:
  14.     file: ./.secrets/onlyoffice_jwt_secret.txt
  15.  
  16. But, the docker-compose.onlyoffice.yaml file still needs a way to get the onlyoffice_jwt_secret without exposing it.
  17. services:
  18.   onlyoffice:
  19.     secrets:
  20.      - onlyoffice_jwt_secret
  21.     environment:
  22.      # - JWT_SECRET=[redacted]
  23.       # - SYNCIN_JWT_SECRET_FILE=/run/secrets/onlyoffice_jwt_secret
  24.       - JWT_SECRET=$(cat ./secrets/onlyoffice_jwt_secret.txt)
  25. secrets:
  26.   onlyoffice_jwt_secret:
  27.     file: ./.secrets/onlyoffice_jwt_secret.txt
Tags: docker
Advertisement
Add Comment
Please, Sign In to add comment