Skip to main content
Under Docker Compose, every setting below is read from an optional .env file next to docker-compose.yml. Each one has a working default, so you only need the file to change something. The annotated template is .env.docker.example. A few of them behave differently outside Compose, and the rows that do say so.

Variables

Two things about the limits

Setting a MAX_* variable to 0 does not disable that limit. Zero is falsy, so the server falls back to the built-in default and the limit stays exactly where it was. To raise a limit, set a bigger number. TRUSTED_PROXY_COUNT is the exception and genuinely accepts 0, which is what you want when the server is exposed directly with no proxy in front of it. The stats-report limiter has no environment variable. It is fixed at 60 reports per IP per 60 seconds. Every other limit on this page is configurable; that one is not.

Minimal local configuration

For local testing nothing needs setting. Every value has a working default, and the client already points at http://localhost:3001 with no .env file at all. The first case that genuinely needs one is reaching the app from another device on your network, which takes NEXT_PUBLIC_SOCKET_URL and CLIENT_URL together. See Docker quickstart.

Production configuration

A typical production .env for a deployment with HTTPS and TURN:
.env
See Production deployment for the full setup.