From docker run to a deployment you can keep: HTTPS in front of the admin UI, a minimal Kubernetes manifest, backup and restore, and the SQLite to Postgres move.
What you run
| Port | Serves | Who connects |
|---|---|---|
8788 | MCP endpoint | Agents and MCP clients |
8789 | Admin UI, admin API, /metrics, /api/v1/health | You, Prometheus, probes |
State lives in one database. SQLite (the default, /var/splicedock/data/splicedock.db) means a single replica. Postgres (SPLICEDOCK_DB_DSN) allows several. Profiles, tokens, approvals, grants, stored credentials and enrolled WebAuthn keys are all in that database, so it is the thing to back up.
Secrets stay out of the configuration file. Pass SPLICEDOCK_ADMIN_TOKEN (and, when you use them, SPLICEDOCK_METRICS_TOKEN and SPLICEDOCK_DB_DSN) as environment variables or a Kubernetes Secret.
HTTPS and a reverse proxy
Serve the admin port over HTTPS before you open it to anything other than localhost. The admin session cookie is always Secure, so a browser does not send it back over plain HTTP and logging in to a remote admin UI over http:// does not work. WebAuthn (strong approval, key enrolment) also needs an HTTPS origin, and server.consent.origin must be exactly that origin.
Publish only the proxy. Bind the container ports to loopback (-p 127.0.0.1:8789:8789) or keep them inside the cluster, and let the proxy terminate TLS.
splicedock.example.com {
reverse_proxy 127.0.0.1:8789
}
mcp.example.com {
reverse_proxy 127.0.0.1:8788 {
flush_interval -1
}
}server {
listen 443 ssl;
server_name splicedock.example.com;
ssl_certificate /etc/ssl/splicedock/fullchain.pem;
ssl_certificate_key /etc/ssl/splicedock/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8789;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
}
}
server {
listen 443 ssl;
server_name mcp.example.com;
ssl_certificate /etc/ssl/splicedock/fullchain.pem;
ssl_certificate_key /etc/ssl/splicedock/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8788;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_buffering off; # keep streamed MCP responses flowing
proxy_read_timeout 3600s;
}
}curl -fsS https://splicedock.example.com/api/v1/health
# {"data":{"status":"ok"}}/api/v1/health needs no token and suits load balancer and Kubernetes probes. /metrics is open unless you set SPLICEDOCK_METRICS_TOKEN; set it, or do not route /metrics through the public proxy.
Kubernetes
A minimal single-replica deployment with SQLite on a volume. Replace the image tag, hostnames and storage class, and replace the placeholder configuration with your own. Do not commit the Secret with a real token; create it with kubectl create secret generic or your secret manager.
apiVersion: v1
kind: Secret
metadata:
name: splicedock
type: Opaque
stringData:
SPLICEDOCK_ADMIN_TOKEN: "replace-with-openssl-rand-hex-32"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: splicedock-config
data:
splicedock.yaml: |
server:
port: 8788
admin_port: 8789
admin_token_env: SPLICEDOCK_ADMIN_TOKEN
require_profile_token: true
profiles:
default:
tools: ["__no_tools__"]
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: splicedock-data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: splicedock
spec:
replicas: 1
strategy:
type: Recreate # SQLite: never two pods on the same volume
selector:
matchLabels:
app.kubernetes.io/name: splicedock
template:
metadata:
labels:
app.kubernetes.io/name: splicedock
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
- name: splicedock
image: ghcr.io/kamilrybacki/splicedock:v4.1.0
ports:
- { name: mcp, containerPort: 8788 }
- { name: admin, containerPort: 8789 }
envFrom:
- secretRef: { name: splicedock }
volumeMounts:
- { name: config, mountPath: /etc/splicedock, readOnly: true }
- { name: data, mountPath: /var/splicedock/data }
readinessProbe:
httpGet: { path: /api/v1/health, port: admin }
livenessProbe:
httpGet: { path: /api/v1/health, port: admin }
initialDelaySeconds: 10
volumes:
- name: config
configMap: { name: splicedock-config }
- name: data
persistentVolumeClaim: { claimName: splicedock-data }
---
apiVersion: v1
kind: Service
metadata:
name: splicedock
spec:
selector:
app.kubernetes.io/name: splicedock
ports:
- { name: mcp, port: 8788, targetPort: mcp }
- { name: admin, port: 8789, targetPort: admin }
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: splicedock
spec:
tls:
- hosts: [splicedock.example.com, mcp.example.com]
secretName: splicedock-tls
rules:
- host: splicedock.example.com
http:
paths:
- path: /
pathType: Prefix
backend: { service: { name: splicedock, port: { name: admin } } }
- host: mcp.example.com
http:
paths:
- path: /
pathType: Prefix
backend: { service: { name: splicedock, port: { name: mcp } } }| Note | Why |
|---|---|
fsGroup: 1000 with runAsUser: 1000 | Makes the volume writable. When the pod does not start as root, the image does not change ownership itself. |
replicas: 1, strategy: Recreate | SQLite allows one writer. For several replicas set SPLICEDOCK_DB_DSN in the Secret and drop the data volume. |
| Files the tools need (SSH keys, a kubeconfig) | Mount them readable by UID 1000. |
| TLS annotations | Add the ones your ingress controller or cert-manager expects. |
Back up and restore
| Item | Where it lives |
|---|---|
| Database | /var/splicedock/data/splicedock.db (SQLite) or your Postgres database |
| Configuration | splicedock.yaml (keep it in version control) |
| Secrets | SPLICEDOCK_ADMIN_TOKEN and the other variables you pass in (keep them in your secret manager) |
Profile tokens are stored as hashes. After a restore the existing tokens keep working, and the admin token comes from the environment.
For SQLite, stop the gateway first so the database is not changing, then copy the volume. The .db file and any -wal / -shm companions must stay together.
docker stop splicedock
docker run --rm -v splicedock-data:/data:ro -v "$PWD":/backup alpine \
tar czf /backup/splicedock-data-$(date +%F).tgz -C /data .
docker start splicedockdocker stop splicedock
docker run --rm -v splicedock-data:/data -v "$PWD":/backup alpine \
sh -c 'rm -rf /data/* && tar xzf /backup/splicedock-data-2026-11-30.tgz -C /data && chown -R 1000:1000 /data'
docker start splicedockIn Kubernetes, scale the Deployment to 0, copy the volume contents with a short-lived pod that mounts the claim, then scale back to 1.
pg_dump --format=custom --file splicedock-$(date +%F).dump "$SPLICEDOCK_DB_DSN"
pg_restore --clean --if-exists --dbname "$SPLICEDOCK_DB_DSN" splicedock-2026-11-30.dumpStop the gateway replicas before a Postgres restore. After any restore, check /api/v1/health, sign in to the admin UI and confirm that your profiles, tools and a pending approval are there and that one existing profile token still connects. Run a restore into a scratch environment now and then, so you know the backup works before you need it.
Move SQLite to Postgres from the container
The image entrypoint always starts the gateway and does not pass arguments on, so run the one-shot command with --entrypoint. Stop the gateway first and back up the database.
export SPLICEDOCK_DB_DSN='postgres://USER:PASSWORD@HOST:5432/DBNAME'
docker run --rm \
-e SPLICEDOCK_DB_DSN \
-v splicedock-data:/var/splicedock/data \
--user 1000:1000 \
--entrypoint node \
ghcr.io/kamilrybacki/splicedock:v4.1.0 \
/app/dist/main.js db migrate-sqlite-to-pg --sqlite /var/splicedock/data/splicedock.dbExporting the DSN and passing -e SPLICEDOCK_DB_DSN keeps the password out of the command line. The command runs in one transaction and verifies row counts. It refuses a target that already holds data unless you add --force. Exit code 0 means success. Start the gateway with SPLICEDOCK_DB_DSN set; profile tokens keep working.