A Docker Compose container setup for a Cloudflare tunnel.
-
Docker
-
Docker Compose
-
this setup assumes that Cloudflare is the DNS provider for your domain.
Add the missing information for the environment variables and host information:
nano .env
nano config/hosts
Mark the .env
and hosts
file so they will not be tracked by git:
git update-index --assume-unchanged .env
git update-index --assume-unchanged config/hosts
docker compose up -d
docker compose down