Using Docker Secrets in place of ENVs

Is there anyway to use Docker Secrets to provide values for values such as DRONE_SECRET and DRONE_GITHUB_SECRET ATM?

For others that have a similar question, I’ve fixed this by pushing my .env files into Docker secrets and then mounting them at the root of the container.

I’d tried this before but wasn’t aware I could change the mount point within the container, the documentation doesn’t make it obvious this is possible.

Some links for the interested:

Current answer seems to be:

Docker stack deploy with docker secrets