Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Self-host BunkerWeb
updated Nov 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Nov 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
An open-source, cloud-native web application firewall built on NGINX. It sits in front of your web services as a reverse proxy and applies security by default: ModSecurity with the OWASP Core Rule Set, bad-behaviour and country blocking, rate limiting, bot challenges, automatic Let's Encrypt certificates, and a web UI with a first-run setup wizard. The all-in-one image bundles the proxy, scheduler, web UI and a Redis instance in one container.
Pick BunkerWeb when you want the reverse proxy to be a web application firewall as well. It is NGINX-based and AGPL-3.0, with ModSecurity and the OWASP Core Rule Set, bad-behaviour and country blocking, rate limiting, bot challenges, automatic Let's Encrypt certificates, and a web UI with a setup wizard. Our snippet uses the all-in-one image, pinned to bunkerity/bunkerweb-all-in-one:1.6.17 (release v1.6.17, 2026-10-21), which bundles the proxy, scheduler, UI and Redis in one container with a named volume for `/data`. The quickstart recommends at least 2 vCPUs and 8 GB of RAM, so our 8192 MB floor is upstream's figure for testing. Caddy, Traefik, Nginx Proxy Manager and Zoraxy route traffic and get certificates; BunkerWeb does that too but its point is request inspection and blocking, so it is the heaviest, and the only one in the catalog with a paid PRO tier. Choose it when your services face the internet and you want filtering in front of them, and one of the lighter proxies when you only need routing.
What you need
Any VPS with at least 8192 MB of RAM
A domain you control — most self-hosted setups need HTTPS in front of them
About an afternoon — budget time for troubleshooting
Paid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# BunkerWeb — adapted from the all-in-one (AIO) image deployment in the integrations docs, pinned to 1.6.17mkdir -p bunkerweb && cd bunkerwebcat > docker-compose.yml <<'EOF'services: bunkerweb-aio: image: bunkerity/bunkerweb-all-in-one:1.6.17 container_name: bunkerweb-aio restart: unless-stopped ports: - 80:8080/tcp - 443:8443/tcp - 443:8443/udp volumes: - bw-storage:/datavolumes: bw-storage:EOFdocker compose up -dtimeout 300 bash -c 'until curl -fsSk -o /dev/null https://localhost/setup; do sleep 3; done'# → https://SERVER_IP:443/setup (setup wizard with a self-signed certificate; the proxy takes ports 80 and 443, so run it on a host with nothing else there)
BunkerWeb's quickstart and integrations documentation flag these before you rely on it:
non-negotiableThe container publishes ports 80 and 443 (mapped to the image's 8080 and 8443), so it needs a host where nothing else listens there. That is normal for a proxy but means it cannot run beside another proxy on the same IP.
non-negotiableFirst-run setup happens in the browser: open https://your-server/setup and create the admin account, the UI domain and the certificate settings. It uses a self-signed certificate until you complete it, and we could not script the wizard, so the snippet only waits for the page.
non-negotiableThe UI is also exposed on port 7000 inside the image for use without BunkerWeb in front; the docs mark that as not recommended for production, and our snippet does not publish it.
non-negotiableDocs mention a BunkerWeb PRO tier in the setup wizard, and the default WAF rules can block legitimate requests, so test each protected service in detection mode before switching to blocking.
non-negotiableA bind-mounted data folder must be writable by UID 101 and GID 101 (the unprivileged user the image runs as); our snippet uses a named volume instead.
BunkerWeb used 341 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.3 (first boot, measured Nov 2026). We list a minimum of 8192 MB.
Is the BunkerWeb install snippet verified?
The BunkerWeb install snippet is marked verified on Ubuntu 26.04 (Nov 2026).