This is a Cloudflare tunnel docker-compose for self host applications.
- Run command
docker compose up -d - Connect the container by run command
docker exec -it <container-name or ID> bash - Login the cloudflare by run command
cloudflared tunnel loginand open link on browser - Create tunnel by run command
cloudflared tunnel create <NAME> - Edit a
config.ymlin/root/.cloudflared - Route the dns by run command
cloudflared tunnel route dns <UUID or NAME> <hostname> - Start the tunnel by run command
cloudflared tunnel run <UUID or NAME>
Don't forget to link network between docker container