This process is more complex and may not meet everyone's needs. It is provided if you want to create your own image that will utilize Docker Secrets. A more secure way of passing sensitve information to the container.
Key Security Benefits
Advantages of Docker Secrets
Encrypted storage of sensitive information
Secrets are only mounted when explicitly requested
#!/bin/bashexportMULLVAD_SETTINGS_DIR=/config
# Read the Mullvad account token from the secret fileMULLVAD_ACCOUNT_TOKEN=$(cat/run/secrets/mullvad_account_token)# Start the daemonmullvad-daemon&sleep5# Configure and Login to Mullvadmullvaddnssetdefault
mullvadauto-connectseton
mullvadaccountlogin$MULLVAD_ACCOUNT_TOKEN# Connect to VPNmullvadconnect
# Keep the container runningtail-f/dev/null