See Docker documents:
Secrets have several advantages over inserting credentials into environment variables, and are considered best practice for Swarm setups.
Can this be added please? Many images implement this via either allowing environment variables to have a suffix like __FILE to specify the path of the secret/config, which is loaded inside the app.
Right now this can be worked around with a custom entrypoint, but that requires updating if the Dockerfile entrypoint or command is ever altered. Edit: This cannot be worked around as it turns out, as I forgot that new containers are spun up to perform the actual backups.
See Docker documents:
Secrets have several advantages over inserting credentials into environment variables, and are considered best practice for Swarm setups.
Can this be added please? Many images implement this via either allowing environment variables to have a suffix like
__FILEto specify the path of the secret/config, which is loaded inside the app.Right now this can be worked around with a custom entrypoint, but that requires updating if the Dockerfile entrypoint or command is ever altered.Edit: This cannot be worked around as it turns out, as I forgot that new containers are spun up to perform the actual backups.