Skip to content

Installation ​

SendDock ships as a single Docker image: ghcr.io/senddock/senddock. Four install paths are supported, in order of preference.

What gets deployed ​

Recipientsopens · clicksunsubscribesReverse proxyHTTPS · your domaincaddy · nginx · traefiksenddocksingle Docker container · :8080go api + vue spa + dispatcherPostgreSQL 17pgdata volumeRedis 7redisdata volumeSMTP submitYour SMTP relaySES · Mailgun · Postmarkwebhook POSTsYour webhook URLsCRM · Slack · Zapier

A single Docker container running the Go binary serves both the API and the Vue SPA. PostgreSQL holds all your data; Redis caches the GitHub releases response and powers per-project rate limits. Your own SMTP relay handles outbound mail — SendDock never proxies your sends.

Requirements ​

  • A Linux server (Ubuntu, Debian, etc.)
  • Docker and Docker Compose
  • A publicly reachable domain pointed at the server (required for unsubscribe links, broadcasts, and SMTP). Evaluating on localhost first works without one — direct transactional sends function normally; only broadcasts and scheduled campaigns stay disabled until a public URL is set.
  • The server's network must allow outbound TCP on the SMTP port your provider uses (usually 465 or 587)

That's it. Everything else is handled by Docker.

Multi-arch image

The official ghcr.io/senddock/senddock image is built for both linux/amd64 and linux/arm64 in the same release tag. So x86 cloud servers (most VPS, AWS x86, DigitalOcean droplets), AWS Graviton / Hetzner ARM nodes, Raspberry Pi 4+ and Apple Silicon dev machines all pull the right binary automatically — no --platform flag, no separate tag.

Don't expect to send real emails from a laptop

Most residential ISPs block outbound SMTP ports (25, 465, 587) at the network edge to prevent spam botnets. A SendDock instance on your home network cannot deliver mail through any external SMTP provider — including Gmail, SES, Mailgun, or your own Mailcow if it lives elsewhere. SendDock in production must run on a cloud server (DigitalOcean, Hetzner, AWS, etc.) where outbound SMTP is unblocked.

For local development and evaluation, ship make mail (or any other Mailpit-like catcher) and configure SendDock to talk to it on localhost:1025. See the SMTP guide for the workaround details.


One command. Installs Docker if missing, fetches the compose file, generates .env with random secrets, wires Watchtower — a small third-party container that pulls the new image and recreates SendDock when the dashboard asks — so the "Update now" button works, and starts the stack.

bash
curl -fsSL https://senddock.dev/install.sh -o setup.sh
sudo bash setup.sh

The script asks nothing — secrets are autogenerated, and you set your public URL on the Setup screen the first time you open SendDock. Supports Ubuntu 22.04+ and Arch-based distros (Arch, Manjaro, EndeavourOS, CachyOS, Garuda) — for other distros use Option 2 below.

Env overrides: INSTALL_DIR (default /opt/senddock), SENDDOCK_PORT (default 8080).

Inspect first if you'd rather not pipe to root:

bash
curl -fsSL https://senddock.dev/install.sh -o setup.sh
less setup.sh    # read it
sudo bash setup.sh

The installer is the canonical scripts/setup.sh from the repo, also attached as an asset on every GitHub release.


Option 2: Manual Docker Compose (any Linux) ​

The fastest path on non-Ubuntu hosts, or when you want to see exactly what's being deployed.

bash
mkdir senddock && cd senddock
curl -fsSL https://raw.githubusercontent.com/SendDock/senddock/main/docker-compose.image.yml -o docker-compose.yml

Create .env next to it:

bash
cat > .env <<EOF
POSTGRES_PASSWORD=$(openssl rand -base64 32)
JWT_SECRET=$(openssl rand -hex 32)
SENDDOCK_PORT=8080
EOF

Your public URL is set on the Setup screen when you first open SendDock, and can be changed later under Instance in the dashboard.

Then:

bash
docker compose up -d

Full .env reference (copy-paste) ​

The snippet above is the minimum to boot. Below is the complete reference — paste it, replace the change-me-… placeholders, and uncomment whatever optional knobs you actually want.

bash
# === REQUIRED ===

# Postgres password — generate with: openssl rand -base64 32
POSTGRES_PASSWORD=change-me-openssl-rand-base64-32

# JWT signing secret (min 32 chars) — generate with: openssl rand -hex 32
JWT_SECRET=change-me-openssl-rand-hex-32

# === OPTIONAL ===

# Host port to expose. The container always listens on 8080 internally.
# SENDDOCK_PORT=8080

# Pro / Team license: activate it from the dashboard under Instance -> License.
# It's stored in the database. The legacy SENDDOCK_LICENSE_KEY env var (removed
# in v0.9) is no longer needed and is not part of a fresh install.

# Per-IP request cap, rolling 60s window. Default 600. Only enforced with Redis.
# RATE_LIMIT_PER_MINUTE=600

# Watchtower integration for one-click updates from the dashboard.
# Both must be set together. See ./updating.md#one-click-updates-from-the-dashboard-watchtower
# SENDDOCK_WATCHTOWER_URL=http://watchtower:8080
# SENDDOCK_WATCHTOWER_TOKEN=change-me-long-random-string

# === ADVANCED (escape hatches — rarely needed) ===

# Override the Lemon Squeezy license endpoint. Production default works for everyone.
# SENDDOCK_LICENSE_ENDPOINT=https://api.lemonsqueezy.com/v1

# Override the path the binary serves the SPA from. The official image already
# sets this correctly inside the container — only touch it for custom builds.
# FRONTEND_DIST_PATH=/app/frontend/dist

# Path to a newline-separated list of disposable email domains. Replaces the
# built-in list (does not extend it).
# DISPOSABLE_DOMAINS_FILE=/etc/senddock/disposable.txt

The container runs goose up — goose is the SQL migration runner embedded in the image, which applies any pending migrations — against Postgres on first start, then serves on :8080. Healthcheck tells you when it's ready (~10 seconds cold).

Open http://your-domain.com (or http://localhost:8080 for a local test) and create your admin account on the setup screen.

One-click updates from the dashboard

If you want the dashboard's "Update now" button to work (so you never have to SSH in to update), add the Watchtower override block from Updating → One-click updates. The bundled scripts/setup.sh installer does this automatically.

What you get ​

LicenseBehavior
noneFree tier — Core features only (projects, subscribers, custom fields, tags, segments, templates, transactional sends, broadcasts, campaigns, BYO SMTP, click & open tracking, suppression list — addresses that hard-bounced or unsubscribed and are skipped on future sends — webhooks, and the Analytics dashboard).
valid Pro keyPro tier — adds Deliverability, the Report builder and the audit log.
valid Team keyTeam tier — Pro features plus multi-user workspaces with roles and admin user creation.

The image is the same in all cases; the license just toggles the gated routes. On self-hosted you activate the key from the dashboard under Instance → License (Instance settings) — it's stored in the database and applies immediately. The SENDDOCK_LICENSE_KEY env var still works but is deprecated (imported once on boot, removed in v0.9). Read the full tier matrix on the pricing page or in Configuration → Plans and licensing.

Pinning a version in production ​

:latest resolves to the most recently tagged release. For production, pin to a specific version so you control when updates land:

yaml
services:
  senddock:
    image: ghcr.io/senddock/senddock:0.8.2

See available tags on GHCR. Only versioned tags (X.Y.Z, X.Y, X) and :latest are public — pre-release builds (:dev) live in a separate, private package and are not intended for end users.


Option 3: Dokploy ​

A SendDock template is pending review in the Dokploy marketplace. Until it lands, deploy via Dokploy's Docker Compose type:

  1. Dokploy → Project → Create Service → Docker Compose
  2. Paste the contents of docker-compose.image.yml. Optionally append the Watchtower override block from Updating → One-click updates if you want the dashboard's "Update now" button to work directly from SendDock.
  3. Fill the env vars in Dokploy's UI: POSTGRES_PASSWORD, JWT_SECRET (and SENDDOCK_WATCHTOWER_TOKEN if you added the override). The public URL is set from the dashboard after first boot.
  4. Map the service's port 8080 to your domain via Dokploy's Traefik integration.
  5. Deploy.

Updates without Watchtower

Even without the Watchtower block, updating is one click: in Dokploy, hit Redeploy on the SendDock service. Dokploy pulls ghcr.io/senddock/senddock:latest and recreates the container. Postgres + Redis volumes are preserved. The dashboard's update modal will surface a "rebuild from your panel" prompt when a new version is available — the bare-Docker command shown there is a fallback, not the path you should use under Dokploy.


Option 4: Build from source ​

For self-hosters who want to compile Core from source — useful for audits, custom patches, or running an unreleased branch.

bash
git clone https://github.com/SendDock/senddock.git
cd senddock
cp .env.production.example .env
# edit .env and set the two required values:
#   JWT_SECRET        -> openssl rand -hex 32
#   POSTGRES_PASSWORD -> openssl rand -base64 32
docker compose -f docker-compose.prod.yml up -d --build

Both values ship empty in the example on purpose: the compose refuses to start while either is missing, naming the variable, so skipping this step is a clear error instead of a stack running on a password anyone can read in the repository.

Windows users run the same docker compose command from PowerShell — no separate script.

This path runs docker-compose.prod.yml, which builds the image locally instead of pulling the prebuilt one. To update later, git pull && docker compose -f docker-compose.prod.yml up -d --build. To reset, run docker compose -f docker-compose.prod.yml down -v && rm .env (this deletes all data, so use it only on test instances) and repeat the fresh-install steps above.

The result is the Core only — Pro features (Deliverability, Reports, Audit log) ship only in the official prebuilt image, not in source builds. Everything else, webhooks and the Analytics dashboard included, is in Core. To run Pro, use the prebuilt image (Options 1–3) with a license key.

What gets started ​

  • Go backend compiled from source
  • Vue frontend built and served by Go
  • PostgreSQL 17 database
  • Redis for caching
  • Database migrations run automatically

What's running ​

ServiceDescription
senddockThe SendDock binary (Go API + Vue frontend) on port 8080
postgresPostgreSQL 17+ database (named volume pgdata)
redisRedis 7+ for caching and rate limits (named volume redisdata)

Migrations run inside the senddock container's entrypoint on every start, against the existing database. Goose deduplicates already-applied migrations, so restarts and updates never replay them.


Custom port or domain ​

The .env you created controls both:

bash
SENDDOCK_PORT=8080

Set your public URL on the Setup screen when you first open SendDock. Until it points at a public address, the broadcast endpoint refuses to send.

PORT vs SENDDOCK_PORT

Two separate things. The Go binary always listens on PORT (default 8080) inside the container. SENDDOCK_PORT is the host port the compose maps to it ("${SENDDOCK_PORT:-8080}:8080"). For a stock install you only ever set SENDDOCK_PORT — leave PORT alone. Set SENDDOCK_PORT=9090 to expose SendDock on http://host:9090 while keeping the container's internal port at 8080.


Reverse proxy (HTTPS) ​

For production, expose SendDock on HTTPS. Three common paths:

Cloudflare Tunnel (no port forwarding) ​

The simplest path when you don't want to expose your server's IP, open firewall ports, or manage Let's Encrypt — and you already have (or can move) a domain to Cloudflare DNS. Outbound-only connection from your server to Cloudflare, no inbound holes in your firewall. Works from a home lab or a VM behind NAT.

Prerequisites:

  • A Cloudflare account (Free plan is enough)
  • Your domain on Cloudflare DNS (also free — change nameservers at your registrar if it's elsewhere)

Steps:

  1. In the Cloudflare dashboard, go to Networking → Tunnels (NOT Zero Trust → Connectors — that's a different feature) and click Create a tunnel.
  2. Pick Cloudflared, give it a name (e.g. senddock-prod), Save.
  3. Cloudflare shows the install command with a token. On your server:
    bash
    sudo cloudflared service install <your-token>
    The connector registers automatically as a systemd service. You should see "Connector connected" in the dashboard within seconds.
  4. Tab Routes → + Add route → Published application. Fill:
    • Subdomain: app (or whatever you want)
    • Domain: your-domain.com
    • Service URL: http://localhost:8080

Include the http:// scheme explicitly

If you enter just localhost:8080 (without http://), Cloudflare defaults to https://localhost:8080 and the tunnel will return 502 Bad Gateway because SendDock listens on plain HTTP inside the Docker network. Always include the scheme.

  1. Cloudflare auto-creates a CNAME app.your-domain.com → <tunnel-id>.cfargotunnel.com in DNS. Verify in DNS → Records.
  2. Set the public URL to https://app.your-domain.com under Instance in the dashboard. It applies immediately — no restart needed.

Test: curl -I https://app.your-domain.com/health should return HTTP/2 200.

Trade-offs: Cloudflare terminates TLS at their edge — they can see plaintext request bodies, including email content. Your instance also goes down during the rare Cloudflare outage. Acceptable for most self-hosters; if you need full end-to-end privacy or zero third-party dependencies, use Caddy or Nginx with your own cert instead.

Caddy ​

your-domain.com {
    reverse_proxy localhost:8080
}

Nginx ​

nginx
server {
    listen 443 ssl;
    server_name your-domain.com;

    ssl_certificate /path/to/cert.pem;
    ssl_certificate_key /path/to/key.pem;

    location / {
        proxy_pass http://localhost:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Set the public URL to https://your-domain.com under Instance in the dashboard.


First-time setup ​

  1. Open your instance in a browser.
  2. The setup screen appears automatically (no users exist yet).
  3. Create your admin account (name, email, password).
  4. You're logged in and ready to create your first project.

Stopping ​

bash
docker compose down

To stop and remove all data (including database):

bash
docker compose down -v

down -v is destructive — it removes the named volumes. Take a backup first if the data matters.


Building from source without Docker ​

If you prefer not to use Docker at all:

Requirements ​

  • Go 1.25+
  • Node.js 20+
  • PostgreSQL 17+ (with the pg_trgm extension — auto-enabled by the migration on first start)
  • Redis 7+
  • goose — go install github.com/pressly/goose/v3/cmd/goose@latest

Build ​

bash
cd frontend && npm ci && npm run build && cd ..
cd backend && make build

Run ​

bash
cd backend
cp .env.example .env
# fill DATABASE_URL, JWT_SECRET
make migrate
./bin/senddock

Go serves the Vue frontend automatically from frontend/dist/.

Released under the AGPL-3.0 License.