Question
Can I use a Docker secret to store my cloudflared token?
Asked by: USER9171
56 Viewed
56 Answers
Answer (56)
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`.