Skip to main content

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 1337 available on your machine

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
  1. Type or paste a secret into the box.
  2. Choose an expiration (1 hour, 1 day, or 1 week).
  3. Click Encrypt. Copy the generated link.
  4. Send the link to the recipient. It self-destructs after one view.

Common server flags

FlagEnv varDefaultDescription
--memcachedMEMCACHEDhost:port of the Memcached instance
--redisREDISRedis connection URL (e.g. redis://host:port/0)
--portPORT1337Port for the HTTP server
--max-lengthMAX_LENGTH10000Maximum secret length in characters
--metrics-portMETRICS_PORTPort to expose Prometheus metrics (disabled when unset)
--license-keyLICENSE_KEYLicense key for premium features
Backend required

Yopass requires either --memcached or --redis. Starting without either will cause the server to exit.


Next steps