· Guides
Self-host FlarePanel on your own server with Docker
FlarePanel now runs on any Linux machine with Docker, as well as on Cloudflare. A walk through the install, upgrades, backups and data retention, and how to choose between the two.
By FlarePanel team
FlarePanel was built to run on Cloudflare: Workers, Durable Objects, D1 and R2 in your own account, with no servers to look after. Some teams need the opposite: data on hardware they control, or a Docker host they already run. Since version 1.0 the same code, dashboard and SDKs run on a single Linux machine too.
Which one to pick
- Cloudflare when you want nothing to maintain and traffic that can grow without resizing a machine. It needs the Workers Paid plan and a domain on Cloudflare DNS, and the Deploy to Cloudflare buttons set it up in two steps.
- Your own server when data must stay on your own machines. You need Docker with the Compose plugin, 4 GB of memory or more and two hostnames.
Reports, funnels, retention, sessions and replay, profiles, cohorts, realtime, bots and AI crawlers, public widgets, AI answers, imports, exports, Search Console, the REST API and MCP work on both.
What runs on the server
ClickHouse stores events, Redis holds buffers and queues, Redpanda carries the event stream, and two FlarePanel containers run the API with its background jobs and the dashboard. The images are published for amd64 and arm64, so there is nothing to build.
Install in four commands
git clone https://github.com/flarepanel-dev/flarepanel.git
cd flarepanel/self-hosting
cp env.example .env # set your hostnames and two secrets
docker compose --profile proxy up -dIn .env you set the dashboard and API addresses and fill COOKIE_SECRET and ENCRYPTION_KEY with the output of openssl rand -hex 32. The proxy profile adds Caddy for TLS; leave it out to put your own proxy in front. Then open the dashboard and create the first account. Sign-ups are closed after that unless you open them, so everyone else needs an invitation.
A smoke-test.sh script checks a fresh install end to end: it creates a test account and project, sends five events and reads them back.
Images you can check
The API and dashboard images are built by a public GitHub Actions workflow from a clean checkout, with no build secrets, and run as a non-root user. Each one carries a signed build record you can verify:
gh attestation verify \
oci://ghcr.io/flarepanel-dev/flarepanel-api:latest \
-R flarepanel-dev/flarepanelUpgrades, backups and retention
Upgrading is git pull, then docker compose pull and up -d; a migrate service applies database changes before the app starts. backup.sh writes the SQLite file with accounts and settings plus a ClickHouse backup of events, sessions, profiles and replays, while the app keeps running. restore.sh asks before it overwrites anything.
ClickHouse keeps events until you say otherwise. To keep them for, say, 400 days, set a TTL on the events and sessions tables; the server guide has the exact commands.
What differs from Cloudflare
- The no-code Cloudflare crawler import needs a Cloudflare install; on a server, report crawlers from your server or edge instead.
- Visitor location comes from a GeoLite2 database built into the image rather than Cloudflare’s edge.
- Email goes out over SMTP or Resend.
Read next
The full guide is Deploy to your own server, and How FlarePanel runs on Cloudflare explains the other option. Self-hosting is free and has no event limits. If you would rather not run anything, the hosted version starts with a 30-day free trial.