---
title: "Deploy Cap"
description: "The self-hosted CAPTCHA for the modern web. Official template for Railway."
category: "Authentication"
url: https://railway.com/deploy/cap-1
---

# Deploy Cap

The self-hosted CAPTCHA for the modern web. Official template for Railway.

**[Deploy Cap on Railway](https://railway.com/template/cap-1)**

- **Creator:** Cap
- **Category:** Authentication
- **Total deploys:** 96

## Template content

### Cap https://trycap.dev/logo.png

- **Image:** tiago2/cap:3
- **Health check:** /
- **Public domain:** Yes

### Valkey https://devicons.railway.app/redis

- **Image:** valkey/valkey:9-alpine
- **Start command:** `valkey-server --save 60 1 --maxmemory-policy noeviction --loglevel warning`

## Documentation

# Deploy Cap on Railway

Cap is a lightweight, modern open-source CAPTCHA alternative using proof-of-work and instrumentation challenges. It's fast, private, and extremely simple to integrate.

This is the **only** official Cap template on Railway.

## Deploy and Host Cap

Cap replaces visual captchas with modern, accessible and privacy-preserving challenges. No images, no tracking, no dependencies, works everywhere.

## About Hosting

Cap's official Railway template includes everything built-in, including a Valkey database and the v3 dashboard.

## Common Use Cases

- **Protect contact forms.** Stop spam bots from flooding your contact forms and email inbox

- **Block bot signups.** Block automated bot accounts from creating fake user signups.

- **Guard API endpoints:** Block malicious scripts from abusing your public APIs while keeping them accessible to legitimate users

## Dependencies for Cap Hosting

Cap runs as a Docker container and requires no additional dependencies when deployed on Railway. Valkey support is built-in.

### Deployment Dependencies

We recommend consulting Cap's docs at https://trycap.dev

## Why Deploy Cap on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Cap on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Keycloak](https://railway.com/deploy/mSwigX) — Keycloak template with keywind theme + apple and discord providers
- [lua-protector](https://railway.com/deploy/lua-protector) — Test deployed my project first
- [bknd](https://railway.com/deploy/p4nTYL) — Feature-rich yet lightweight backend

Open this page in a browser: https://railway.com/deploy/cap-1
