Self-host Cap on a VPS
A lightweight, privacy-friendly proof-of-work CAPTCHA, an alternative to reCAPTCHA or hCaptcha.
levelrail-cli templates deploy cap-captcha --name my-cap-captchaSpecification
- Status
- Listed
- Category
- Security
- Services
- cap, valkey
- Ports
- 3000
- Volumes
- 1
- Memory
- about 256 MiB
- arm64
- image published
- amd64
- image published
- Settings to fill in
- none
- License
- not yet recorded
About Cap
A lightweight, privacy-friendly proof-of-work CAPTCHA, an alternative to reCAPTCHA or hCaptcha. Runs 2 containers (cap, valkey), with cap listening on port 3000 and keeps its data in named volumes.
What it deploys
Cap runs as 2 services in a single Compose app, listening on port 3000, with 1 named volume mount.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| cap | tiago2/cap | 3.0.4 | 3000 | none |
| valkey | valkey/valkey | 9-alpine | none | cap_valkey_data -> /data |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
- Host ports. It publishes port 3000 directly on the host, so open them in the VPS firewall only if you want that.
Settings and environment
You do not have to fill in anything. 1 secret is generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| cap | ADMIN_KEY | Generated at deploy |
| cap | REDIS_URL | Preset by the template |
Install Cap on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get cap-captcha -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy cap-captcha --name my-cap-captcha
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Cap.
Docs and upstream
More in Security
- authentikAn identity provider and SSO platform with flows, policies, and support for OIDC, SAML, LDAP, and proxy auth.
- AutheliaSingle sign-on and two-factor portal. The admin user is created at first boot from a generated password (visible in the service environment settings, never on a process command line); more users go in /data/users.yml. Sessions are scoped to this portal's own host, so widen the cookie domain in /config/configuration.yml before protecting other apps. One-time codes are written to /data/notification.txt.
- CrowdSec Local APICollaborative security engine run here as the local API that other agents and bouncers register with. The log reading agent and the online API are switched off.
- CryptgeonA self-destructing note and file sharing service inspired by PrivNote, with end-to-end encryption.
- DexOpenID Connect identity provider that fronts other identity sources. The install form carries config.yaml as an editable file, so it starts with a local database and the issuer address you choose.
- AnubisA reverse proxy that makes clients pass a small proof of work before reaching your site, which blocks most scraper bots. Sits in front of one upstream you choose. The signing key is generated for you.