Customize app config
Override an app’s generated docker-compose.yml and app.env when you need host mounts or environment values the install form does not cover.
Example use cases
- Set an environment variable on an app, such as Pi-hole’s time zone
- Mount an extra host volume into a media app such as Jellyfin. By default, Jellyfin only sees its own
mediafolder,app-data/<app-store>/jellyfin/media.
Anything you mount is visible to the app, with the permissions of the user the container runs as. Mount only the folders the app needs.
How overrides are applied
Hub generates each app’s <ROOT_FOLDER_HOST>/apps/<app-store>/<app-id>/docker-compose.yml from the store manifest’s docker-compose.json every time the app installs, updates, starts, or restarts, so direct edits under apps/ are overwritten.
Your overrides live under <ROOT_FOLDER_HOST>/user-config/<app-store>/<app-id>/:
user-config/<app-store>/<app-id>/app.env— passed as a second--env-fileafterapp-data/<app-store>/<app-id>/app.env, so any variable you define here overrides the value saved by the install form.user-config/<app-store>/<app-id>/docker-compose.yml— passed as a second--fileafterapps/<app-store>/<app-id>/docker-compose.yml, so Docker Compose merges your service fields (such as extravolumes,devices, orenvironmententries) on top of the generated file.
Hub includes both files whenever userConfigEnabled is true for the app (the default in the Hub database, controlled via /api/user-config/<urn>/enable and /disable).
Sandbox validation vs. host overrides
When Hub builds apps/<app-store>/<app-id>/docker-compose.yml from a store manifest’s docker-compose.json, its Compose Security Validator (collectServiceSecurityViolations) enforces strict container sandbox rules:
- It blocks
privileged: true,networkMode: "host",pid: "host", confinement-disablingsecurityOptvalues (seccomp=unconfined,apparmor=unconfined,label=disable), Linux capabilities outside Docker’s default 14-capability set, raw disk block devices (/dev/sd*,/dev/nvme*,/dev/mem), and sensitive host paths (/,/var/run/docker.sock,/run,/var/lib/docker,/var/lib/containerd,/proc,/sys,/dev,/etc,/root,/usr,/bin) unless the app has an explicit grant inTRUSTED_APP_SECURITY_ALLOWLIST. - It applies
security_opt: ["no-new-privileges:true"]and isolates the app on its own/24bridge network (10.128.10.0/24and above) while blocking internal Hub infrastructure ports (6543and5672).
By contrast, user-config/<app-store>/<app-id>/docker-compose.yml is a local operator override file on your host filesystem that Hub passes directly to docker compose --file. You can use it to bind-mount arbitrary host directories (such as /cellar:/cellar or an external NAS mount) or pass through local hardware devices without modifying the store manifest. Per-app backups include user-config/, and on restore Hub validates that the user-config/ archive tree contains no symlinks, hard links, device nodes, or setuid/setgid files.
flowchart LR
subgraph APPS["apps/<app-store>/ — generated by Hub, overwritten on start"]
PD["pi-hole/docker-compose.yml<br/>references PIHOLE_TZ"]
JD["jellyfin/docker-compose.yml"]
end
subgraph UC["user-config/<app-store>/ — your overrides"]
PE["pi-hole/app.env<br/>PIHOLE_TZ=Europe/Berlin"]
JC["jellyfin/docker-compose.yml<br/>volumes: /cellar:/cellar"]
end
PD --> P["Pi-hole container"]
PE -- "sets the variable" --> P
JD --> J["Jellyfin container"]
JC -- "adds the mount" --> J
RS["Stop, then Start<br/>the app to apply"] -.- P
RS -.- JCreate custom Docker config
This example sets an environment variable for Pi-hole and mounts /cellar into Jellyfin.
Inspect <ROOT_FOLDER_HOST>/apps/<app-store>/pi-hole/docker-compose.yml to learn which variables the generated file references:
environment:
TZ: ${PIHOLE_TZ}Here, set PIHOLE_TZ. A variable you set in app.env wins over the value the install form saved.
Do not edit files under apps directly. Hub regenerates them and overwrites
your changes.
Create the folders
Under your Hub data root (ROOT_FOLDER_HOST), create user-config folders that match the app store and app IDs. Find the data root with cihub doctor:
cd "$ROOT_FOLDER_HOST"
mkdir -p user-config/<app-store>/jellyfin
mkdir -p user-config/<app-store>/pi-holeReplace <app-store> with your app store’s folder name. Apps from the
Companion App Store use ci-marketplace; apps migrated from earlier versions
use migrated. Check the apps folder in your data root for the exact name.
Override Jellyfin volumes
touch user-config/<app-store>/jellyfin/docker-compose.yml
nano user-config/<app-store>/jellyfin/docker-compose.ymlservices:
jellyfin:
volumes:
- /cellar:/cellar/cellar with the host path you want to mount.Override Pi-hole environment
touch user-config/<app-store>/pi-hole/app.env
nano user-config/<app-store>/pi-hole/app.envPIHOLE_TZ=Europe/BerlinReplace Europe/Berlin with your own time zone
name .
Confirm the layout
- docker-compose.yml
- app.env
Restart the apps and verify
On each app’s detail page in Companion Hub, select Stop, then Start.
- In Jellyfin, open library settings and confirm the mounted volume appears.
- For Pi-hole, find the container name with
cihub app list, then check the time zone it runs in:
docker exec <container-name> dateThe output shows the time in the zone you set:
Mon Sep 29 14:02:11 CEST 2026