Hardened SABnzbd image — no s6-overlay, no shell, non-root, read-only root filesystem.
USER 1000:1000 default, overridable)readOnlyRootFilesystem compatibleos.execvamd64, arm64| Variable | Description | Default |
|---|---|---|
HOST_WHITELIST | Comma-separated hostnames for host_whitelist in sabnzbd.ini | |
SABNZBD_CONFIG_DIR | Config directory path | /config |
SABNZBD_LISTEN | Listen address and port | 0.0.0.0:8080 |
SABNZBD_COMPLETE_DIR | Override completed downloads directory in sabnzbd.ini | |
SABNZBD_DOWNLOAD_DIR | Override incomplete downloads directory in sabnzbd.ini |
| Path | Purpose |
|---|---|
/config | Persistent data — sabnzbd.ini, databases, logs |
/incomplete | Temporary download files |
/tmp | General temporary files |
services:
sabnzbd:
image: ppaslan/sabnzbd:latest
restart: unless-stopped
user: "1000:1000"
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
environment:
- HOST_WHITELIST=sabnzbd.example.com
- SABNZBD_COMPLETE_DIR=/media/downloads
- SABNZBD_DOWNLOAD_DIR=/incomplete
ports:
- "8080:8080"
volumes:
- ./config:/config
- /media:/media
tmpfs:
- /tmp:size=128m
- /incomplete:size=150g
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch
seccompProfile:
type: RuntimeDefault
containers:
- name: sabnzbd
image: ppaslan/sabnzbd:latest
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop: [ALL]
env:
- name: HOST_WHITELIST
value: "sabnzbd.example.com"
volumeMounts:
- name: config
mountPath: /config
- name: incomplete
mountPath: /incomplete
- name: tmp
mountPath: /tmp
- name: media
mountPath: /media
volumes:
- name: config
persistentVolumeClaim:
claimName: sabnzbd-config
- name: incomplete
emptyDir:
sizeLimit: 150Gi
- name: tmp
emptyDir:
medium: Memory
sizeLimit: 128Mi
- name: media
persistentVolumeClaim:
claimName: media
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg SABNZBD_VERSION=4.5.5 \
-t ppaslan/sabnzbd:4.5.5 \
images/sabnzbd/
Content type
Image
Digest
sha256:f5b9b0689…
Size
60.4 MB
Last updated
2 days ago
docker pull ppaslan/sabnzbd