Loomkeep reads its configuration from .env at the repository’s root. After
a change, apply it with docker compose up -d. .env.example lists every
variable with its own comments; optional services have theirs on
their pages.
| Variable |
What it is |
POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB |
The database’s credentials. |
JWT_ACCESS_SECRET, JWT_REFRESH_SECRET |
Sign sessions. At least 32 characters each and different from each other, or an instance in production refuses to start. Changing either signs everyone out. |
MFA_ENCRYPTION_KEY |
Encrypts authenticator-app secrets. Required once WEB_ORIGIN is https. Never change it once someone uses an authenticator app: their second factor would stop working. |
BACKUP_ENCRYPTION_PUBLIC_KEY |
The age public key backups are encrypted for. |
TMDB_API_TOKEN |
Films and series: see Catalogue keys. |
| Variable |
Default |
What it is |
PUBLIC_API_URL |
http://localhost:3000/api |
Where browsers reach the API. |
WEB_ORIGIN |
http://localhost:8080 |
Where the web app is served; also the origin the API accepts. |
DOMAIN |
— |
With the HTTPS override: your domain. Sets both addresses above. |
COMPOSE_FILE |
— |
The compose files to combine, separated by colons. |
LOOMKEEP_BIND_ADDRESS |
127.0.0.1 |
Where the base setup publishes ports 8080 and 3000. 0.0.0.0 opens them to your network (a NAS): see Ports. |
| Variable |
What it is |
ADMIN_EMAIL |
The account with this email becomes administrator when it signs up or in. |
SOCIAL_ENABLED, CHAT_ENABLED, GAMIFICATION_ENABLED, REGISTRATION_ENABLED, PUBLIC_API_ENABLED, API_RATE_LIMIT_FREE, API_RATE_LIMIT_PREMIUM, UPDATE_CHECK_ENABLED, TELEMETRY_ENABLED, ASK_ACQUISITION_SOURCE |
Optional: override and lock the matching instance settings. On/off ones read true/false, 1/0, yes/no, on/off; a value Loomkeep can’t read is ignored, with a warning in the logs. |
LOOMKEEP_LICENSE_KEY |
Not needed for now: see Premium edition. |
PUBLIC_SEARCH_INDEXING |
true lets search engines index your instance’s public pages. Off by default: see Opening up. |
TMDB_API_TOKEN, TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET, OMDB_API_KEY,
STEAM_API_KEY, SIMKL_CLIENT_ID, SIMKL_CLIENT_SECRET and API_CONTACT:
see Catalogue keys.
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, SMTP_FROM, MAIL_SUPPORT_ADDRESS,
VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY and VAPID_SUBJECT: see
Email and push.
| Variable |
What it is |
PUBLIC_TURNSTILE_SITE_KEY, TURNSTILE_SECRET_KEY |
Optional bot protection on sign-up: see Behind Cloudflare. |
LOG_LEVEL |
fatal, error, warn, info (default), debug, trace or silent. |
IMAGE_TAG |
Pins the images to a release instead of latest: see Upgrades. |
API_TLS_KEY, API_TLS_CERT |
Optional: the PEM contents (not paths) of a key and certificate, for the API to serve HTTPS itself without a reverse proxy. Leave empty behind Caddy. |
GIT_SHA |
Set when the image is built; shown in Admin next to the version. Nothing to set yourself. |