qm-socket-proxy

qm-socket-proxy

Docker app from lewlewglitch's Repository

Overview

Restricted Docker API proxy for Quartermaster Companion. It keeps the Docker socket out of the main application and does not publish a host port.

Unraid

Community Apps installs Quartermaster Companion as two containers. The socket proxy is kept separate so the main application never mounts the Docker socket.

Install

Open the Unraid terminal and generate two different keys:

printf 'SECRET_KEY='; openssl rand -hex 32
printf 'QM_PROXY_KEY='; openssl rand -hex 32

Keep both values private. SECRET_KEY protects the saved Companion state and must not change during an upgrade. QM_PROXY_KEY authenticates the connection between the two containers.

  1. Install qm-socket-proxy from Apps. Keep that container name, enter the generated QM_PROXY_KEY, and leave Docker writes and Container shell set to 0.
  2. Install qm-companion. Enter the same QM_PROXY_KEY, the separate SECRET_KEY, and the LAN or Tailscale address of the Unraid server in Server address.
  3. Open the Companion Web UI and create the owner account. If the first-run token is requested, open the qm-companion container log in Unraid.

Do not add a host port to qm-socket-proxy. Companion reaches it through an internal Docker link.

This installation supports the web panel and the standard setup transfer. The optional persistent mobile connection on port 8788 needs the manual Docker Compose mobile profile described in Mobile connections.

Unraid creates the default appdata directory for its nobody:users account (99:100), which is also the account used by the Companion template. If a custom directory already exists, make sure that account can write to it before starting the container.

Service config files

Companion can discover supported containers without mounting their appdata. A read-only config file mount lets it also find the service API key. The template includes optional paths for the supported file formats under Advanced View.

Select the config file on the Unraid host and keep the container path supplied by the template. Do not mount an entire appdata parent directory. Duplicate instances can use another matching folder beneath /stack, such as /stack/radarr-4k/config.xml.

Docker access

The default installation is read only. To allow more, edit both containers and keep these settings aligned:

Access available in Companion qm-companion DOCKER_ACCESS_MAX qm-socket-proxy POST qm-socket-proxy EXEC
Status, logs and discovery read 0 0
Container and image management manage 1 0
Management and container shell shell 1 1

After raising the installed maximum, Companion still starts with Read only selected. The owner can change the active mode from Docker access in the web interface.

DOCKER_DEPLOY_BIND_ROOTS controls which host directories Marketplace deployments may mount. Leave it blank to permit named volumes only. Docker management and shell access are host-level permissions, so enable only what is needed.

Reverse proxies

The default Web UI uses plain HTTP and should stay on a trusted private network. When a trusted reverse proxy provides HTTPS, set Trusted reverse proxy to true in the qm-companion template. Keep it false for direct HTTP access.

Install qm-socket-proxy on Unraid in a few clicks.

Find qm-socket-proxy in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for qm-socket-proxy Review the template variables and paths Click Install

Requirements

Install this before qm-companion. Do not publish port 2375. Use the same QM_PROXY_KEY in both templates.

Categories

Related apps

Explore more like this

Explore all

Details

Repository
ghcr.io/lewlew-glitch/qm-companion-socket-proxy:latest
Last Updated2026-09-01
First Seen2026-09-01

Runtime arguments

Network
bridge
Shell
sh
Privileged
false
Extra Params
--restart=unless-stopped --read-only --cap-drop=ALL --security-opt=no-new-privileges --tmpfs=/tmp:size=4m,mode=1777 --tmpfs=/run:size=1m,mode=0755 --label=qm.protected=true

Template configuration

Docker socketPathro

Docker socket used by the restricted proxy. Keep this mount read only.

Target
/var/run/docker.sock
Default
/var/run/docker.sock
Proxy keyVariable

Shared key used to authenticate Companion. Generate it with openssl rand -hex 32 and enter the same value in qm-companion.

Target
QM_PROXY_KEY
Docker writesVariable

Keep 0 for read only. Set 1 only when qm-companion uses the manage or shell access level.

Target
POST
Default
0
Container shellVariable

Keep 0 unless qm-companion uses the shell access level.

Target
EXEC
Default
0
Containers APIVariable

Allows Companion to inspect containers.

Target
CONTAINERS
Default
1
Images APIVariable

Allows Companion to inspect images.

Target
IMAGES
Default
1
Volumes APIVariable

Allows Companion to inspect volumes.

Target
VOLUMES
Default
1
Networks APIVariable

Allows Companion to inspect networks.

Target
NETWORKS
Default
1
Events APIVariable

Allows Companion to follow Docker events.

Target
EVENTS
Default
1
Host information APIVariable

Allows Companion to read Docker host information.

Target
INFO
Default
1
Disk usage APIVariable

Allows Companion to read Docker disk usage.

Target
SYSTEM
Default
1
Ping APIVariable

Allows Companion to check the Docker connection.

Target
PING
Default
1
Version APIVariable

Allows Companion to read the Docker API version.

Target
VERSION
Default
1