Skip to content

Environment variables

Variable Default Description
TZ UTC Time zone for dates in the UI, logs and schedules (e.g. America/New_York)
SONARR_ANALYZER_DATA_DIR data (/app/data in Docker) Where the databases and the master key are stored
SONARR_ANALYZER_ALLOWED_HOSTS (empty: any host) Comma-separated Sonarr hosts (host or host:port) the app may connect to
SONARR_ANALYZER_SCHEDULER_POLL 60 Seconds between checks for due schedules
SONARR_ANALYZER_SCHEDULER 1 0 disables the in-app scheduler thread. The Docker entrypoint does this because it runs a dedicated scheduler process
SONARR_ANALYZER_API 1 0 turns off the mobile API (port 8502)
SONARR_ANALYZER_TLS none self-signed serves the web app and the API over HTTPS with a certificate generated in /app/data/tls. Any other value stops the container with an error
SONARR_ANALYZER_TLS_HOSTNAMES (empty) Extra names or IPs for the self-signed certificate, comma-separated (e.g. nas.local,192.168.1.10)
SONARR_ANALYZER_PUBLIC_URL (empty) The API address the phones use, pre-filled in the pairing QR dialog (e.g. https://sonarr-analyzer.example.com). Empty: the browser’s host on port 8502
FORWARDED_ALLOW_IPS 127.0.0.1 IPs or networks (CIDR) of the reverse proxies the API trusts for the client’s address, read by uvicorn. Set it to your proxy’s, e.g. its Docker network 172.18.0.0/16. Never * if port 8502 is reachable directly
LOG_LEVEL INFO Python logging level
STREAMLIT_SERVER_PORT 8501 Web interface port
STREAMLIT_SERVER_ADDRESS 0.0.0.0 Bind address
STREAMLIT_SERVER_HEADLESS true Headless mode
STREAMLIT_BROWSER_GATHER_USAGE_STATS false Streamlit telemetry, off

The image already sets the STREAMLIT_* values; you don’t need to repeat them.

Local time zone and a host allow-list:

docker-compose.yml
environment:
- TZ=Europe/Madrid
- SONARR_ANALYZER_ALLOWED_HOSTS=sonarr,192.168.1.10:8989

HTTPS with the self-signed certificate, for the mobile apps on your LAN:

docker-compose.yml
ports:
- "8501:8501"
- "8502:8502"
environment:
- TZ=Europe/Madrid
- SONARR_ANALYZER_TLS=self-signed
- SONARR_ANALYZER_TLS_HOSTNAMES=nas.local,192.168.1.10

Behind a reverse proxy on the Docker network 172.18.0.0/16 (examples in Security):

docker-compose.yml
environment:
- SONARR_ANALYZER_PUBLIC_URL=https://sonarr-analyzer.example.com
- FORWARDED_ALLOW_IPS=172.18.0.0/16

Another port on the host (the container keeps 8501):

Terminal window
docker run -d --name sonarr-analyzer -p 9000:8501 \
-e TZ=America/New_York \
-v sonarr-data:/app/data \
martitoci/sonarr-analyzer:latest
# http://localhost:9000

Sonarr Analyzer v0.7.0 · GitHub · Docker Hub ·Report an issue

No trackers · MIT License · © Carlos Medina · Not affiliated with Sonarr