Have a simple question about creating a tunnel using the Cloudflare web UI. When I create a new tunnel there is a docker run command that is generated with a token, like this:
docker run Cloudflare/cloudflared:2022.5.1 tunnel --no-autoupdate run --token [long token]
After I run it, the tunnel is established as expected. But what is the long term way of running the cloudflared container? Do people just add the -d flag to the run the docker container in the background? What about other docker options such as restart policy? Is there a docker-compose example?
It all depends on what your environment looks like for the best way to run your tunnel. If you are using it with other containers, then you can look at docker-compose. If you are running it by itself, then you want both a restart policy and the
As for a docker-compose example. Here is one I just for running xyzzy
command: tunnel run --token <token>
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.