Hosting rugen-server
Cloudflare Tunnel
The optional add-on that puts rugen-server behind a Cloudflare Tunnel, as a second, separate compose app.
A Cloudflare Tunnel gives your server HTTPS and a public name without
opening port 8080. It is an optional add-on in deploy/cloudflared/,
deployed as a second, separate compose app next to the main stack.
Setup
- Cloudflare dashboard → Zero Trust → Networks → Tunnels → Create a tunnel → Cloudflared. Copy the token after
--token(eyJ...). - Public hostname:
rugen.example.com→ serviceHTTP, URLrugen-server:8080. - Deploy the server first (see Docker Compose & Dokploy). In Dokploy create a second Compose service with compose path
deploy/cloudflared/docker-compose.yml, setCF_TUNNEL_TOKENin its Environment tab and deploy it. It joins the server’srugennetwork; no ports needed. - For the UDP fast path add a DNS-only (grey cloud) record such as
udp.example.com→ the server’s public IP, and setRUGEN_UDP_PUBLIC=udp.example.com:7001on the server. A proxied name cannot carry UDP. - With the tunnel in place you may drop the
8080port mapping from the server compose.
On plain Docker:
cd rugen-server/deploy/cloudflared
CF_TUNNEL_TOKEN=eyJ... docker compose up -d
The add-on compose file
name: rugen-tunnel
services:
cloudflared:
image: cloudflare/cloudflared:2026.10.0
command: tunnel --no-autoupdate run --token ${CF_TUNNEL_TOKEN:?set CF_TUNNEL_TOKEN}
restart: unless-stopped
networks:
- rugen
networks:
rugen:
name: rugen
external: true
The rugen network is created by the main stack with a fixed name, which
is why the server has to be deployed first.
Something wrong on this page? Edit it on GitHub.