From an empty folder to your cinema in ten minutes.
A compose file and your browser are all it takes: secrets are generated on first launch, and every setting is made in the setup assistant.
The compose file
Create an empty folder and save this file as docker-compose.yml. It works as it stands: the app answers on the server's port 3000, and its data lives in a named volume.
# Laterna - minimal deployment # No .env: secrets are generated on first launch, # and every setting is made in the setup assistant. services: laterna: image: ghcr.io/lk59/laterna:latest # :10.65.1 to pin a version, :edge to follow main container_name: laterna restart: unless-stopped # Reachable from the server only (http://localhost:3000). # Behind a proxy on the same Docker network, remove these two lines. ports: - "127.0.0.1:3000:3000" # The Docker network of your reverse proxy (and ideally Jellyfin). # networks: # - proxy volumes: # Database, settings, secrets and logs: all of the app's state. - laterna-data:/app/data # Optional, read-only: your media, for the statistics. # - /path/to/media:/mnt/media/video:ro environment: - TZ=Etc/UTC # Behind an HTTPS proxy (step 3): # - COOKIE_SECURE=true # - TRUSTED_PROXIES=nginx-proxy-manager # Optional: a memory ceiling. # mem_limit: 2g healthcheck: test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:3000/api/ping"] interval: 30s timeout: 5s retries: 3 start_period: 60s volumes: laterna-data: name: laterna-data # fixed name, used by backups # networks: # proxy: # external: true # the name `docker network ls` gives
Set TZ to your time zone (Europe/London, America/New_York...). To keep the data in a ./data folder next to the file, replace the volume line with - ./data:/app/data and create the folder first: mkdir data && sudo chown 1001:1001 data.
Installed before 10.65.2? Your names are cine-app and cine-app-data: keep them — renaming the volume would start from an empty database. Only the image: line may change to ghcr.io/lk59/laterna:latest (same image).
Start and check
Within a minute, the container reads "healthy".
docker compose up -d docker compose ps docker compose logs laterna | grep "setup code"
On a new install, the logs print a one-time setup code. The assistant asks for it to create the admin account, so only someone with access to the server can read it. In Portainer or Dockge, read it in the container's log view, or with docker logs laterna 2>&1 | grep "setup code".
If the container stops, its last log line gives the reason. The most common case is a ./data folder owned by root: sudo chown -R 1001:1001 data.
Behind a reverse proxy
HTTPS enables home-screen install, notifications and every player feature. Pick your proxy:
- Hosts → Proxy Hosts → Add Proxy HostDetails tab: your domain name, scheme
http, forward hostnamelaterna, port3000. - SSL tabRequest a Let's Encrypt certificate, then tick Force SSL and HTTP/2 Support.
- Advanced tabPaste these two lines. The first keeps page navigation smooth, the second accepts the screenshots attached to problem reports.
large_client_header_buffers 4 32k; client_max_body_size 110m;
laterna.example.com {
request_body {
max_size 110MB
}
reverse_proxy laterna:3000
}
In the compose file, join the app to the proxy's network (the networks blocks), remove ports, then uncomment these two lines with your proxy's container name:
- COOKIE_SECURE=true - TRUSTED_PROXIES=nginx-proxy-manager # or caddy, traefik...
Restart with docker compose up -d. Keep these two lines commented while you test over http://.
The setup assistant
Open your address (http://localhost:3000 on the server, or through ssh -L 3000:localhost:3000 <server>): the assistant shows until setup is finished. Choosing the language on the Welcome screen moves on at once; steps 1 to 7 then save when you press Next, and test the service you just filled in.
- Welcomethe install's language
- Accountthe setup code, then the local admin
- Jellyfinaddress and API key, seen from the container
- TMDBthe API key
- LibraryRadarr and Sonarr, optional
- ExtrasJellyseerr, qBittorrent, Bazarr, ratings, playback
- Deploymentthe compose options, with the line to copy
- Finisha summary of what is available
Addresses are seen from inside the container, where localhost is the Laterna container itself: use the container name (http://jellyfin:8096) on a shared Docker network, or the server's LAN address. If Jellyfin runs in another compose project, attach both to the same external Docker network (a networks: block in each), or use the server's LAN address if Jellyfin publishes port 8096 on it.
And after
Viewers sign in with their Jellyfin account, and Jellyfin admins are Laterna admins.
docker compose pull && docker compose up -d
docker compose stop docker run --rm -v laterna-data:/data -v "$PWD":/backup alpine \ tar czf /backup/laterna-$(date +%F).tgz --exclude=./image-cache --exclude=./static-previous -C /data . docker compose start
Migrations run at startup, and open tabs move to the new version between two plays. Always copy the whole volume, config/secrets.json included: cine.db-wal holds the most recent changes. The archive is created by root: sudo chown $USER laterna-*.tgz if needed.
Bonus: actors on screen (X-Ray)
The optional companion service laterna-xray recognises the cast scene by scene and ties each voice to a face. During playback, the « On screen » row shows who is in the scene; touching someone opens their role, « So far » (what their character has done up to now, without spoilers) and their films in your library. It all runs on your own server, with no online AI.
It needs an x86-64 host (no ARM build: recognition runs on Intel's OpenVINO), about 4 GB of memory, the media library read-only and Laterna's Docker network. An Intel iGPU is optional and makes it about twice as fast. In a folder of its own:
services:
laterna-xray:
image: ghcr.io/lk59/laterna-xray:latest
container_name: laterna-xray
restart: unless-stopped
user: "1000:1000" # the owner of your media files
environment:
- XRAY_API_KEY=change-me # openssl rand -hex 32 — the same key in Laterna
- HOME=/data
networks: [proxy] # Laterna's Docker network
volumes:
- /path/to/media:/media:ro # read-only, at the same path as in Jellyfin
- xray_data:/data
mem_limit: 4g
cpu_shares: 256 # a Jellyfin transcode goes first
# devices: ["/dev/dri:/dev/dri"] # Intel iGPU, optional: twice as fast
# group_add: ["993"] # the group of /dev/dri: getent group render
volumes:
xray_data:
networks:
proxy:
external: true
docker compose up -d, thendocker logs -f laterna-xrayuntil the models are ready — a few minutes on the first start, once.- In Laterna, Configuration → Connections → Actors on screen: the address
http://laterna-xray:8000and the same key, then Test connection. - Configuration → Smart features → Actors on screen: open it to administrators first, then to everyone. The library is analysed in the background, at low priority; progress is on that page.
Hardware acceleration, models and licences, settings and troubleshooting: the laterna-xray guide.
Every step in detail, Traefik, permissions and troubleshooting: QUICKSTART.md and DEPLOYMENT.md.