Can I use a Docker secret to store my cloudflared token?

Question

Grade: Education Subject: Support
Can I use a Docker secret to store my cloudflared token?
Asked by:
56 Viewed 56 Answers

Answer (56)

Best Answer
(336)
Yes, using Docker secrets is a highly recommended and secure way to manage your cloudflared token. You would create a secret containing your token, then reference that secret in your `docker-compose.yml` file for the `TUNNEL_TOKEN` environment variable. This prevents the token from being exposed in the plain text `docker-compose.yml`.