Quick Start
Get Yopass running locally in under five minutes. The recommended path is Docker Compose — it wires up the server and its storage backend in a single command.
Prerequisites
- Docker and Docker Compose (v2+)
- Port
1337available on your machine
Option 1: Docker Compose (recommended)
With Memcached
docker-compose.yml
services:
yopass:
image: ghcr.io/jhaals/yopass:latest
ports:
- "1337:1337"
environment:
MEMCACHED: memcached:11211
depends_on:
- memcached
memcached:
image: memcached
With Redis
docker-compose.yml
services:
yopass:
image: ghcr.io/jhaals/yopass:latest
ports:
- "1337:1337"
environment:
DATABASE: redis
REDIS: redis://redis:6379/0
depends_on:
- redis
redis:
image: redis:7-alpine
Start either setup with:
docker compose up -d
Open http://localhost:1337 — Yopass is running.
Share your first secret
- Type or paste a secret into the box.
- Choose an expiration (1 hour, 1 day, or 1 week).
- Click Encrypt. Copy the generated link.
- Send the link to the recipient. It self-destructs after one view.
Common server flags
| Flag | Env var | Default | Description |
|---|---|---|---|
--memcached | MEMCACHED | — | host:port of the Memcached instance |
--redis | REDIS | — | Redis connection URL (e.g. redis://host:port/0) |
--port | PORT | 1337 | Port for the HTTP server |
--max-length | MAX_LENGTH | 10000 | Maximum secret length in characters |
--metrics-port | METRICS_PORT | — | Port to expose Prometheus metrics (disabled when unset) |
--license-key | LICENSE_KEY | — | License key for premium features |
Backend required
Yopass requires either --memcached or --redis. Starting without either will cause the server to exit.
Next steps
- Add TLS — TLS / HTTPS guide to serve over HTTPS
- Enable file uploads — File Storage guide for disk or S3 backends
- Add authentication — OpenID Connect guide (license required)
- Customize branding — Theming guide (license required)
- Production metrics — Metrics guide for Prometheus and Grafana