The stack is deployed and managed with Komodo, which replaced Portainer. On oreobox-hetzner:
network_mode: host. It's kept out of the Core stack so that redeploying Core and MongoDB doesn't recreate it.Only the compose part of the media stack lives in Komodo. The rclone mount and everything else on the host level is set up separately.
| Setting | Value |
|---|---|
| Name and compose project | media |
| Server | Komodo server of oreobox-hetzner: TODO |
| Source | TODO: UI defined or files on server |
| Environment | See below |
| Poll for updates | On |
| Auto update | Off |
A stack's source (UI defined, files on server, git repo) is fixed when the stack is created and can't be switched later. Moving the stack to another source, e.g. a Forgejo repo, means creating a new stack with the same project name
media, so compose adopts the running containers.
Komodo writes the stack's Environment to a .env file next to the compose file and passes it with --env-file, so the compose file can use ${PUID} and friends:
# id -u gooner
PUID=TODO
# id -g gooner
PGID=TODO
TZ=Europe/Berlin
Secrets don't go here in plain text. Store them in Komodo under Settings → Variables with "secret" checked, and reference them in the Environment as NAME=[[NAME]].
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
user: "${PUID}:${PGID}"
group_add:
- "44" # video, check with: getent group video
- "992" # render, check with: getent group render
ports:
- 127.0.0.1:8096:8096
volumes:
- /opt/docker/jellyfin/config:/config
- /opt/docker/jellyfin/cache:/cache
- /home/oreobox/media:/data/media
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card0:/dev/dri/card0
restart: unless-stopped
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=${PUID}
- PGID=${PGID}
- UMASK=002
- TZ=${TZ}
ports:
- 127.0.0.1:8989:8989
volumes:
- /opt/docker/sonarr/config:/config
# Same path as in Jellyfin, so library update paths match
- /home/oreobox/media:/data/media
# Slot downloads via rclone, remote path mapping target /seedbox/downloads/
- type: bind
source: /mnt/seedbox
target: /seedbox
bind:
propagation: rslave
restart: unless-stopped
radarr:
image: lscr.io/linuxserver/radarr:latest
container_name: radarr
environment:
- PUID=${PUID}
- PGID=${PGID}
- UMASK=002
- TZ=${TZ}
ports:
- 127.0.0.1:7878:7878
volumes:
- /opt/docker/radarr/config:/config
- /home/oreobox/media:/data/media
- type: bind
source: /mnt/seedbox
target: /seedbox
bind:
propagation: rslave
restart: unless-stopped
prowlarr:
image: lscr.io/linuxserver/prowlarr:latest
container_name: prowlarr
environment:
- PUID=${PUID}
- PGID=${PGID}
- UMASK=002
- TZ=${TZ}
ports:
- 127.0.0.1:9696:9696
volumes:
- /opt/docker/prowlarr/config:/config
restart: unless-stopped
# Runs as UID 1000 inside the image; its config dir is owned by 1000:1000
seerr:
image: ghcr.io/seerr-team/seerr:latest
container_name: seerr
init: true
environment:
- TZ=${TZ}
ports:
- 127.0.0.1:5055:5055
volumes:
- /opt/docker/seerr/config:/app/config
restart: unless-stopped
Notes:
network_mode: all services sit on the project network media_default and reach each other by service name. On Docker's default bridge that wouldn't work.container_name. A stray container with the same name (e.g. a leftover from Portainer) makes the deploy fail.init: true.Before the first deploy:
/mnt/seedbox exists./opt/docker/{jellyfin,sonarr,radarr,prowlarr}/config exist and belong to gooner; /opt/docker/seerr/config belongs to 1000:1000./home/oreobox/media is writable for gooner.video and render GIDs in group_add match the host (getent group video render).| Task | How |
|---|---|
| Deploy | Stack media → Deploy. Runs docker compose up -d for the project; only changed services are recreated. |
| Update images | Pull, then Deploy. "Poll for updates" flags new image digests on the stack. |
| Change the configuration | Edit the compose file or the Environment, then Deploy. |
| Restart or stop one service | The service's row on the stack page. |
| Logs | Per service on the stack page, or docker logs <service> on the host. |
Jellyfin updates come in through latest. Back up /opt/docker/jellyfin/config before pulling a new major version, see Operations.