# Runs Suit on your own server. Put this file in a folder of its own, then: # # docker compose up -d start Suit (the first time, it downloads it) # docker compose pull && docker compose up -d update to the newest version # # Settings go in a .env file next to this one, all optional; .env.example lists them. # Suit listens only on this machine, on port 3000 (or SUIT_PORT from .env if 3000 is taken). Serve it over HTTPS: # - over Tailscale, privately: tailscale serve --bg 3000 → https://..ts.net # - on your own domain, behind a reverse proxy you run (Nginx Proxy Manager, Traefik, Caddy, nginx) that # forwards https://suit.example.com to Suit. docs/self-hosting.md shows how. # # With Suit's source code next to it, docker compose up -d --build builds the image from it instead. services: suit: image: ghcr.io/humantech-org/suit:${SUIT_VERSION:-latest} build: . restart: unless-stopped ports: - "127.0.0.1:${SUIT_PORT:-3000}:80" # Lets Suit reach services on the server itself, such as an Ollama for embeddings, at host.docker.internal. extra_hosts: - "host.docker.internal:host-gateway" environment: # Optional. Without it, Suit makes its own key on first start and keeps it in the suit-storage volume. SECRET_KEY_BASE: ${SECRET_KEY_BASE:-} # true: something in front of Suit (Tailscale, a reverse proxy) serves it over HTTPS. SUIT_SSL: ${SUIT_SSL:-true} # The address people use, e.g. https://myserver..ts.net. Links in emails (to you and to your # participants), intake forms and shared results, and bin/rails users:reset_password start with it. Needed # once email is on. SUIT_URL: ${SUIT_URL:-} # Proxies in front of Suit on public addresses (a CDN, say), comma-separated, so Suit sees each visitor's own # address. Private ones (Tailscale, a proxy on this machine or in Docker) need nothing. SUIT_TRUSTED_PROXIES: ${SUIT_TRUSTED_PROXIES:-} # Email, optional. Suit sends email only when SMTP_ADDRESS is set. Intake forms need it: respondents confirm # their address by email. SMTP_ADDRESS: ${SMTP_ADDRESS:-} SMTP_PORT: ${SMTP_PORT:-587} SMTP_USERNAME: ${SMTP_USERNAME:-} SMTP_PASSWORD: ${SMTP_PASSWORD:-} SMTP_AUTHENTICATION: ${SMTP_AUTHENTICATION:-plain} SMTP_ENABLE_STARTTLS: ${SMTP_ENABLE_STARTTLS:-true} MAIL_FROM: ${MAIL_FROM:-} # closed: after the first account, only bin/rails users:create makes accounts. open: anyone can sign up. SUIT_SIGNUPS: ${SUIT_SIGNUPS:-closed} # true: signed-out visitors see a page about Suit instead of the sign-in page. For a hosted Suit. SUIT_LANDING: ${SUIT_LANDING:-false} # true: new accounts confirm their email before they can use Suit. SUIT_REQUIRE_CONFIRMATION: ${SUIT_REQUIRE_CONFIRMATION:-false} # Embeddings, for criteria compared by the meaning of a text. Optional: without a provider, those criteria # can't be made. openai: any OpenAI-compatible API (it needs SUIT_EMBEDDINGS_API_KEY). ollama: an Ollama you # run, e.g. SUIT_EMBEDDINGS_URL=http://host.docker.internal:11434, so no text leaves your server. # URL and model have defaults for each provider; docs/self-hosting.md has the details. SUIT_EMBEDDINGS_PROVIDER: ${SUIT_EMBEDDINGS_PROVIDER:-} SUIT_EMBEDDINGS_URL: ${SUIT_EMBEDDINGS_URL:-} SUIT_EMBEDDINGS_API_KEY: ${SUIT_EMBEDDINGS_API_KEY:-} SUIT_EMBEDDINGS_MODEL: ${SUIT_EMBEDDINGS_MODEL:-} # Geocoding, for criteria compared by distance: addresses go to OpenStreetMap's public Nominatim, at most one a # second. off: no geocoding, and no distance criteria. SUIT_NOMINATIM_URL: your own Nominatim instead. SUIT_GEOCODING: ${SUIT_GEOCODING:-on} SUIT_NOMINATIM_URL: ${SUIT_NOMINATIM_URL:-} # Humantech's hosted Suit only: subscriptions through Paddle. Leave them out on your own server. PADDLE_ENVIRONMENT: ${PADDLE_ENVIRONMENT:-} PADDLE_CLIENT_TOKEN: ${PADDLE_CLIENT_TOKEN:-} PADDLE_PRICE_MONTHLY: ${PADDLE_PRICE_MONTHLY:-} PADDLE_PRICE_YEARLY: ${PADDLE_PRICE_YEARLY:-} PADDLE_PRICE_MONTHLY_NO_TRIAL: ${PADDLE_PRICE_MONTHLY_NO_TRIAL:-} PADDLE_PRICE_YEARLY_NO_TRIAL: ${PADDLE_PRICE_YEARLY_NO_TRIAL:-} PADDLE_API_KEY: ${PADDLE_API_KEY:-} PADDLE_WEBHOOK_SECRET: ${PADDLE_WEBHOOK_SECRET:-} volumes: # The SQLite databases (Suit's data, and its queue of background jobs) and the key Suit made live here, and # survive updates and restarts. - suit-storage:/rails/storage healthcheck: test: ["CMD", "curl", "-fs", "-o", "/dev/null", "http://localhost/up"] interval: 30s timeout: 5s start_period: 30s retries: 3 volumes: suit-storage: