Skip to content

Ports & networking

Default ports

Where Port Role
Container / uvicorn 8080 Horde API + static UI (+ wiki when built into the image)
Host (Compose) 8686 Published as 8686:8080
Vite (local frontend) 5173 Dev-only React HMR; proxies API to the backend

Bind address defaults to 0.0.0.0 (HOST). Change with env vars if needed.

Browser ──► host:8686 ──► container:8080 (FastAPI)
                │
                ├── /api/*          JSON + SSE + Range media
                ├── /assets/*       Frontend build
                ├── /wiki/          MkDocs (image builds only)
                └── /*              SPA (index.html)

Change the port

Something else already using 8686, or you prefer another number? Do not edit docker-compose.yml (updates stop when it has local edits). Create docker-compose.override.yml next to it instead; Compose reads that file automatically and Git ignores it:

services:
  horde:
    ports: !override
      - "9000:8080"   # host port 9000 → Horde's 8080 inside the container

Then run docker compose up -d from the Horde folder and open http://<server-ip>:9000. Keep 8080 on the right-hand side. !override replaces the default mapping instead of adding a second one; it needs Docker Compose 2.24.4 or newer (docker compose version). Dockge uses the Compose inside its own container, so check that one with sudo docker exec dockge docker compose version (use your Dockge container's name) or deploy this change from the shell instead. update.sh finds the new port by itself.

CORS (cast receivers)

Only the video stream, subtitle and thumbnail routes send CORS headers (Access-Control-Allow-Origin: *, methods GET, HEAD, OPTIONS, Range allowed), so Chromecast can fetch them cross-origin. All other routes send none. Horde also only answers LAN-style Host names; behind a reverse proxy set HORDE_ALLOWED_HOSTS. See Security.

LAN-only

LAN by default

Horde has accounts (details). Anyone who can reach the port can try passwords, and any signed-in user can read the library.

Keep it on a trusted LAN or VPN. To expose it to the internet, follow the internet exposure checklist (TLS, trusted proxy, allowed hosts, required two-step sign-in). Recipes: Remote access. Design: Security model.

Local development

Typical split:

Process URL
Backend (uvicorn) http://127.0.0.1:8080
Frontend (vite) http://127.0.0.1:5173

The wiki is only present when MkDocs output is copied into the static tree. Docker builds it into the image; ./start.sh builds it locally by default. See Troubleshooting, Local development, and Remote access.