.env file at the root of your self-hosted stack. The installer writes a starter .env for you; edit it directly to change any value. After edits, apply them with ./rallly.sh restart.
When using the Rallly CLI, internal wiring (database URL, S3 endpoint,
NEXT_PUBLIC_BASE_URL) is handled by the Compose stack and derived from the values below — you do not need to set them yourself. If you’re running the Rallly Docker image without the CLI, see Running the image directly.General
The domain where your instance is served (e.g.
rallly.example.com). Traefik uses this to request a Let’s Encrypt certificate and to route traffic to the app.A random secret key used to encrypt user sessions. Must be at least 32 characters. Generate one with
openssl rand -base64 32.The first user who signs in with this email can claim the admin role from
/control-panel. See the Control Panel guide.Email (SMTP)
An SMTP server is required to send magic-link sign-in emails and notifications.Common values: 587 (STARTTLS), 465 (implicit TLS), 25 (plain). Ports 587 and 25 use STARTTLS and require
SMTP_SECURE=false; port 465 uses implicit TLS and requires SMTP_SECURE=true.Set to
true for implicit TLS (typically port 465). Leave as false for STARTTLS (typically port 587), which upgrades a plain connection to TLS after the initial handshake.Validate TLS certificates. Set to
false to accept self-signed certificates. Not recommended for production.Available from v4.4.0 and later.
Hostname used for TLS certificate validation. Required when
SMTP_HOST is an IP address or a hostname that only resolves via /etc/hosts. See nodemailer TLS options.Available from v4.8.0 and later.
No longer supported since v4.16.0 and can be removed from your configuration. Send failures are now logged with the SMTP server’s response (
errorResponse, errorResponseCode, errorCommand), which covers the cases this option was used for. For connection level diagnosis, run openssl s_client -starttls smtp -connect <host>:<port> for STARTTLS (SMTP_SECURE=false), or openssl s_client -connect <host>:<port> for implicit TLS (SMTP_SECURE=true, usually port 465).Auth
Set to
false to disable email sign-in. When disabled, users can only sign in via a configured SSO provider. New users can still register through SSO unless REGISTRATION_ENABLED is false or registration is disabled in the control panel.Available from v4.4.0 and later.
Set to
false to disable new user registration. Takes precedence over the database setting in the admin UI.Available from v4.4.0 and later.
Comma-separated list of email addresses allowed to register and sign in. Wildcards are supported. Example:
*@example.com allows any address on that domain.Single Sign-On
See the Single Sign-On guide for setup instructions and the full list of variables.Video Conferencing
Google Meet, Zoom, Microsoft Teams and Webex links on polls are turned on per provider withCONFERENCING_PROVIDERS and an OAuth app for each. See the Video Conferencing guide for setup instructions and the full list of variables.
Available from v4.16.0 and later.
Branding
Customise the look of your instance. These settings can also be changed from the Control Panel, where a saved value takes precedence over the environment variable. See White Labeling for details.Available from v4.6.0 and later. Requires an Enterprise license with the white-label add-on.
Absolute URL to your logo icon, shown at the top of emails. Defaults to the Rallly logo mark. Use a raster format, as SVG rendering is unreliable across mail clients.
Advanced
Override the Rallly Docker image. Pin a major version (e.g.
lukevella/rallly:4) to avoid pulling in breaking changes. See the releases for available versions.Limits how often one visitor can perform actions such as signing in or submitting responses. Counts are kept in memory and reset when the container restarts. Rallly reads the visitor’s address from the
X-Real-IP header, then from X-Forwarded-For, so if you run your own reverse proxy, make sure it sets one of them. The bundled proxy sets X-Real-IP. When Rallly can’t determine a visitor’s address, it doesn’t apply limits keyed by address. Set to false to turn the limits off.Comma separated IP addresses or CIDR ranges of the proxies between your visitors and Rallly, for example
10.0.0.0/8,172.16.0.1. Set this when requests pass through more than one proxy, so X-Forwarded-For holds several addresses. Rallly removes the trusted addresses from the right of the header and uses the first one left as the visitor’s address. Without it, an X-Forwarded-For header with several addresses is ignored.External reverse proxy
The stack bundles Traefik for TLS termination. To put Rallly behind your own reverse proxy (Nginx, Caddy, Cloudflare Tunnel, etc.), setPROXY_MODE=external — the bundled traefik container is skipped and the web container is published on a host port your proxy can route to. See External reverse proxy in the installation guide for the full setup.
Set to
external to disable the bundled Traefik reverse proxy and publish the web container on a host port instead. Your external proxy is responsible for TLS termination.Host port binding for the
web container when PROXY_MODE=external. Format is <host>:<port>. Use 0.0.0.0:3000 to expose on all interfaces, or pick a different port if 3000 is in use.External database
The stack bundles a PostgreSQL container that works out of the box. SetDATABASE_URL in .env to point at an external Postgres instead (RDS, Supabase, Neon, Prisma Postgres, etc.) — the bundled db container is skipped automatically when this variable is set.
Postgres connection string. Leave unset to use the bundled database. Example:
postgres://user:password@db.example.com:5432/rallly.External object storage
The stack bundles Garage for file uploads, which works out of the box. To use an external S3-compatible service (AWS S3, Cloudflare R2, MinIO, etc.), set the variables below in.env — the bundled garage container is skipped automatically when S3_ENDPOINT points elsewhere.
S3 API endpoint. Leave unset to use the bundled storage. Example:
https://s3.us-east-1.amazonaws.com.Corporate networks
If outbound traffic from your server must pass through a proxy, or your network intercepts TLS with an internal root CA, see the Corporate Networks guide for theHTTP_PROXY/HTTPS_PROXY/NO_PROXY variables and CA_CERT_FILE.
Running the image directly
If you’re running the Rallly Docker image without the Rallly CLI, a few variables that the CLI normally supplies or derives become your responsibility.Fully qualified public URL of your instance, including scheme. Example:
https://rallly.example.com. The CLI generates this from DOMAIN; without the CLI, you must set it explicitly.DATABASE_URL— Postgres connection stringS3_ENDPOINT,S3_BUCKET_NAME,S3_REGION,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY— S3-compatible object storage credentials
DOMAIN and ACME_EMAIL are only used by the bundled Traefik reverse proxy and can be left unset in this mode. TLS termination is your reverse proxy’s responsibility.