Episode 18: Portainer CE, Arcane, Dockge and Komodo measured next to a running stack

This commit is contained in:
Maximilian Grimm 2026-10-17 16:30:10 +02:00
parent 55b2fe7646
commit 76a3132a17
42 changed files with 1639 additions and 0 deletions

14
managers/README.md Normal file
View file

@ -0,0 +1,14 @@
# Docker managers, measured (episode 18)
Portainer CE 2.45.2, Arcane v2.16.1, Dockge 1.5.0 and Komodo 2.3.3, installed one at a time
next to a running 16-container stack, measured, then removed.
- `*.compose.yaml`, `komodo.compose.env`: the compose files used, close to the official quickstarts.
Tags are pinned and every UI is bound to 127.0.0.1 (reach it through an SSH tunnel).
The Komodo env file is the upstream example on purpose: its admin password and JWT secret are
the published defaults the episode is about. Change them before you use it.
- `*.sh`: install, measure and remove scripts per tool, shared helpers in `lib.sh`.
- `measurements/`: raw output of every measurement quoted in the video.
Docker Hub limited anonymous pulls during the test (header `100;w=3600`), so the update
detection results ran partly under that limit. See the video for details.

View file

@ -0,0 +1,28 @@
# ep18: Arcane 2.16.1 nach docker/examples/compose.basic.yaml (Tag v2.16.1).
# Abweichungen: exakter Tag statt latest, Port nur an 127.0.0.1, Pfade für das Lab.
services:
arcane:
image: ghcr.io/getarcaneapp/manager:v2.16.1
container_name: arcane
ports:
- '127.0.0.1:3552:3552'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- arcane-data:/app/data
- /opt/ep18-arcane/projects:/opt/ep18-arcane/projects
- /opt/ep18-arcane/builds:/builds
environment:
- ENCRYPTION_KEY=${ARCANE_KEY}
- PROJECTS_DIRECTORY=/opt/ep18-arcane/projects
- TZ=UTC
cgroup: host
healthcheck:
test: ['CMD', './arcane', 'health', '--timeout', '2s']
interval: 10s
timeout: 3s
retries: 5
start_period: 15s
restart: unless-stopped
volumes:
arcane-data:

48
managers/arcane.sh Normal file
View file

@ -0,0 +1,48 @@
#!/usr/bin/env bash
# ep18 Arcane-Messung über die API. Aufruf: arcane.sh login|see|deploy|redeploy|updates
. /root/ep18/lib.sh; . /root/ep18/testcompose.sh; set -a; . /root/ep18/secrets.env; set +a
U=http://127.0.0.1:3552/api
J() { curl -s -H "Authorization: Bearer $(cat /root/ep18/.atok 2>/dev/null)" "$@"; }
login() { curl -s -X POST $U/auth/login -H 'Content-Type: application/json' -d "{\"username\":\"arcane\",\"password\":\"$1\"}"; }
case $1 in
default)
echo '$ POST /api/auth/login {"username":"arcane","password":"arcane-admin"} # Standardzugang aus der Doku, wie ein Fremder'
login arcane-admin | jq -c '{success, requirePasswordChange: (.data.user.requiresPasswordChange // .data.requirePasswordChange // null), user: .data.user.username, roles: .data.user.roles, token: (if .data.token then "<JWT, "+(.data.token|length|tostring)+" chars>" else null end)}'
login arcane-admin | jq -r .data.token > /root/ep18/.atok; chmod 600 /root/ep18/.atok
echo '$ GET /api/environments/0/containers mit diesem Token (vor jedem Passwortwechsel)'; J "$U/environments/0/containers" -o /dev/null -w " HTTP %{http_code}\n"
;;
setpw)
echo '$ POST /api/auth/password (Passwort ändern)'; J -X POST $U/auth/password -H 'Content-Type: application/json' -d "{\"currentPassword\":\"arcane-admin\",\"newPassword\":\"$ARCANE_PW\"}" -w " HTTP %{http_code}\n" | sed -E 's/[A-Za-z0-9_-]{30,}/REDACTED/g'
login "$ARCANE_PW" | jq -r .data.token > /root/ep18/.atok
;;
see)
echo '$ GET /api/environments/0/containers'; J "$U/environments/0/containers?limit=100" | jq -r '.data[] | [(.names[0] // .name), (.labels["com.docker.compose.project"] // "-"), .state] | @tsv' | sort | column -t
echo "containers seen: $(J "$U/environments/0/containers?limit=100" | jq '.data|length'), docker ps -a says: $(docker ps -aq | wc -l)"
echo '$ GET /api/environments/0/projects'; J "$U/environments/0/projects?limit=100" | jq -c '.data[] | {name, id, status, path, isDiscovered, serviceCount, runningCount}'
;;
deploy)
D=$(mktemp -d); writetest $D 0
echo '$ POST /api/environments/0/projects multipart, Teil "project" = {name: ep18-whoami, composeContent}'
jq -n --rawfile c $D/compose.yaml '{name:"ep18-whoami", composeContent:$c}' > $D/p.json
T0=$(now); R=$(J -X POST "$U/environments/0/projects" -F "project=<$D/p.json;type=application/json" -F "manifest={\"fileChanges\":[]};type=application/json"); echo "$R" | jq -c '{success, id: .data.id, name: .data.name, path: .data.path, status: .data.status, error: (.detail // .error // null)}'
P=$(echo "$R" | jq -r .data.id); echo "$P" > /root/ep18/.aproj
echo "\$ POST /api/environments/0/projects/<id>/up"; J -X POST "$U/environments/0/projects/$P/up" -o /dev/null -w " HTTP %{http_code}, API returned after %{time_total} s\n"
T0=$T0 watchrun ep18-whoami 0
;;
redeploy)
P=$(cat /root/ep18/.aproj); D=$(mktemp -d)
for n in 1 2 3; do writetest $D $n
echo "\$ PUT /api/environments/0/projects/<id> (composeContent RUN=$n), dann POST .../up"
export T0=$(now); jq -n --rawfile c $D/compose.yaml '{composeContent:$c}' | J -X PUT "$U/environments/0/projects/$P" -H 'Content-Type: application/json' -d @- -o /dev/null -w " PUT HTTP %{http_code} %{time_total} s\n"
J -X POST "$U/environments/0/projects/$P/up" -o /dev/null -w " up HTTP %{http_code}, API returned after %{time_total} s\n"
watchrun ep18-whoami $n; sleep 3; done
;;
updates)
P=$(cat /root/ep18/.aproj)
echo '$ POST /api/environments/0/image-updates/check-all'; J -X POST "$U/environments/0/image-updates/check-all" -w " HTTP %{http_code}\n" | head -c 1500; echo
echo '$ GET /api/environments/0/image-updates/summary'; J "$U/environments/0/image-updates/summary" | jq -c .
echo '$ GET /api/environments/0/projects/<id>/updates'; J "$U/environments/0/projects/$P/updates" | jq -c . | head -c 3000; echo
for t in latest v1.11.0 v1.12.0; do echo "registry traefik/whoami:$t = $(regdigest traefik/whoami $t)"; done
echo "local traefik/whoami:latest = $(docker image inspect -f '{{.Id}}' traefik/whoami:latest)"
;;
esac

View file

@ -0,0 +1,14 @@
# ep18: Dockge 1.5.0 nach compose.yaml im Repo louislam/dockge (Tag 1.5.0).
# Abweichungen: exakter Tag statt "1", Port nur an 127.0.0.1.
services:
dockge:
image: louislam/dockge:1.5.0
restart: unless-stopped
ports:
- 127.0.0.1:5001:5001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
- /opt/stacks:/opt/stacks
environment:
- DOCKGE_STACKS_DIR=/opt/stacks

2
managers/dockge.sh Normal file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
# ep18 Dockge-Messung ueber socket.io. Nutzt node (scratchpad sio). Aufruf vom Mac aus ueber Tunnel 15001.

View file

@ -0,0 +1,55 @@
# ep18: Komodo 2.3.3 nach compose/ferretdb.compose.yaml (Tag v2.3.3 im Repo moghtech/komodo).
# Abweichungen: exakte Tags statt "2" und ohne Tag, Port nur an 127.0.0.1.
services:
postgres:
image: ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
labels:
komodo.skip:
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${KOMODO_DATABASE_USERNAME}
POSTGRES_PASSWORD: ${KOMODO_DATABASE_PASSWORD}
POSTGRES_DB: postgres
ferretdb:
image: ghcr.io/ferretdb/ferretdb:2.7.0
labels:
komodo.skip:
restart: unless-stopped
depends_on:
- postgres
volumes:
- ferretdb-state:/state
environment:
FERRETDB_POSTGRESQL_URL: postgres://${KOMODO_DATABASE_USERNAME}:${KOMODO_DATABASE_PASSWORD}@postgres:5432/postgres
core:
image: ghcr.io/moghtech/komodo-core:2.3.3
init: true
restart: unless-stopped
depends_on:
- ferretdb
ports:
- 127.0.0.1:9120:9120
env_file: ./compose.env
environment:
KOMODO_DATABASE_ADDRESS: ferretdb:27017
volumes:
- keys:/config/keys
- ${COMPOSE_KOMODO_BACKUPS_PATH}:/backups
periphery:
image: ghcr.io/moghtech/komodo-periphery:2.3.3
init: true
restart: unless-stopped
depends_on:
- core
env_file: ./compose.env
volumes:
- keys:/config/keys
- /var/run/docker.sock:/var/run/docker.sock
- /proc:/proc
- ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}:${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}
volumes:
postgres-data:
ferretdb-state:
keys:

47
managers/komodo.sh Normal file
View file

@ -0,0 +1,47 @@
#!/usr/bin/env bash
# ep18 Komodo-Messung über die API. Aufruf: komodo.sh login USER PW|see|deploy|redeploy|updates|adopt
. /root/ep18/lib.sh; . /root/ep18/testcompose.sh
U=http://127.0.0.1:9120
K() { local p=$1; shift; curl -s -X POST "$U/$p" -H "authorization: $(cat /root/ep18/.ktok 2>/dev/null)" -H 'content-type: application/json' "$@"; }
case $1 in
login) R=$(curl -s -X POST $U/auth/login/LoginLocalUser -H 'content-type: application/json' -d "{\"username\":\"$2\",\"password\":\"$3\"}"); echo "$R" | jq -r '.data.jwt // empty' > /root/ep18/.ktok; chmod 600 /root/ep18/.ktok
echo "$R" | jq -c 'if .data.jwt then {type, jwt: ("<"+(.data.jwt|length|tostring)+" chars>")} else . end' ;;
see)
S=$(K read/ListServers -d '{}' | jq -r '.[0].id'); echo "server: $(K read/ListServers -d '{}' | jq -c '[.[]|{name, state: .info.state, version: .info.version}]')"
echo '$ /read/ListDockerContainers (Komodo liefert hier KEINE compose-Labels, nur Name und Zustand)'; K read/ListDockerContainers -d "{\"server\":\"$S\"}" | jq -r '.[] | [.name, .state] | @tsv' | sort | column -t
echo "containers seen: $(K read/ListDockerContainers -d "{\"server\":\"$S\"}" | jq length), docker ps -a says: $(docker ps -aq | wc -l)"
echo '$ /read/ListComposeProjects'; K read/ListComposeProjects -d "{\"server\":\"$S\"}" | jq -c '.[] | {name, status, compose_files}'
echo '$ /read/ListStacks (Komodo-Ressourcen)'; K read/ListStacks -d '{}' | jq -c '[.[] | {name, state: .info.state, project_missing: .info.project_missing}]'
;;
deploy)
S=$(K read/ListServers -d '{}' | jq -r '.[0].id'); D=$(mktemp -d); writetest $D 0
echo '$ /write/CreateStack ep18-whoami (Compose im UI-Editor gespeichert)'
jq -n --rawfile c $D/compose.yaml --arg s "$S" '{name:"ep18-whoami", config:{server_id:$s, file_contents:$c, auto_pull:false}}' | K write/CreateStack -d @- | jq -c '{id: ._id["$oid"], name, server: .config.server_id}'
echo '$ /execute/DeployStack'; export T0=$(now); K execute/DeployStack -d '{"stack":"ep18-whoami"}' | jq -c '{id: ._id["$oid"], operation, status, success}'; echo " API returned after $(el $T0 $(now)) s"
watchrun ep18-whoami 0
;;
redeploy)
D=$(mktemp -d); ID=$(K read/GetStack -d '{"stack":"ep18-whoami"}' | jq -r '._id["$oid"]')
for n in 1 2 3; do writetest $D $n
echo "\$ /write/UpdateStack (file_contents RUN=$n), dann /execute/DeployStack"
export T0=$(now); jq -n --rawfile c $D/compose.yaml --arg id "$ID" '{id:$id, config:{file_contents:$c}}' | K write/UpdateStack -d @- -o /dev/null -w " UpdateStack HTTP %{http_code} %{time_total} s\n"
K execute/DeployStack -d '{"stack":"ep18-whoami"}' -o /dev/null -w " DeployStack HTTP %{http_code}, API returned after %{time_total} s\n"
watchrun ep18-whoami $n; sleep 3; done
;;
updates)
for t in latest v1.11.0 v1.12.0 v1.10.4; do echo "registry traefik/whoami:$t = $(regdigest traefik/whoami $t)"; done
for c in ep18-whoami-pinned-1 ep18-whoami-floating-1; do echo "$c runs image $(docker inspect -f '{{.Image}}' $c | cut -c1-19)"; done
echo '$ /write/CheckStackForUpdate ep18-whoami'; K write/CheckStackForUpdate -d '{"stack":"ep18-whoami"}' | jq -c '.services[]? // .'
;;
adopt)
S=$(K read/ListServers -d '{}' | jq -r '.[0].id')
echo '# Versuch, den bestehenden selfhostedops-stack zu uebernehmen, ohne die compose.yml umzuziehen:'
echo '# Komodo-Stack im Modus "Files on Server" (files_on_host), run_directory auf den vorhandenen Ordner,'
echo '# project_name = selfhostedops-stack, damit docker compose -p denselben Namen nutzt.'
jq -n --arg s "$S" '{name:"adopt-sho", config:{server_id:$s, files_on_host:true, run_directory:"/opt/selfhostedops-stack", file_paths:["compose.yml"], project_name:"selfhostedops-stack", env_file_path:".env"}}' | K write/CreateStack -d @- | jq -c '{id: ._id["$oid"], name, files_on_host: .config.files_on_host, run_directory: .config.run_directory, project_name: .config.project_name}'
echo '$ /read/GetStack adopt-sho -> erkennt es die Services aus der vorhandenen compose.yml?'
K read/GetStack -d '{"stack":"adopt-sho"}' | jq -c '{state: .info.state, status: .info.status, services: ([.info.deployed_services // [] | .[]?.service] ), missing_files: .info.missing_files, deployed_contents_len: ((.info.deployed_contents // [])|length)}'
echo '# Nur lesen/anzeigen in diesem Lab, KEIN DeployStack auf den echten Stack. Danach wieder entfernt:'
ID=$(K read/GetStack -d '{"stack":"adopt-sho"}' | jq -r '._id["$oid"]'); K write/DeleteStack -d "{\"id\":\"$ID\"}" -o /dev/null -w "DeleteStack HTTP %{http_code}\n"
;;
esac

50
managers/lib.sh Normal file
View file

@ -0,0 +1,50 @@
#!/usr/bin/env bash
# ep18 Lab-Helfer auf der Box. Nur lesen/messen, keine Geheimnisse im Output.
now() { date +%s.%N; }
ts() { date -u +%H:%M:%S; }
el() { python3 -c "print(f'{float(\"$2\")-float(\"$1\"):.2f}')"; }
# waitui URL [max_s]: wartet, bis die URL mit 2xx/3xx antwortet, druckt jede Änderung des Status
waitui() { local url=$1 max=${2:-300} t0=$(now) last=""; while :; do
c=$(curl -sk -o /dev/null -m 2 -w '%{http_code}' "$url");
[ "$c" != "$last" ] && echo " $(ts) +$(el $t0 $(now)) s HTTP $c" && last=$c
case $c in 2*|3*) echo "UI reachable after $(el $t0 $(now)) s"; return 0;; esac
[ $(python3 -c "print(int(float('$(now)')-float('$t0')))") -ge $max ] && echo "TIMEOUT" && return 1; sleep 0.2; done; }
# stats5 NAME_REGEX SECONDS: docker stats im 5-s-Takt, dann Mittel/Max je Container und Summe
stats5() { local re=$1 dur=${2:-300} f=$(mktemp) t0=$(date +%s); echo "# docker stats --no-stream every 5 s for $dur s, containers matching /$re/, start $(ts) UTC"
while [ $(( $(date +%s) - t0 )) -lt $dur ]; do s=$(date +%s.%N)
docker stats --no-stream --format '{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}' | awk -F'\t' -v re="$re" '$1 ~ re' | sed "s/^/$(ts)\t/" | tee -a $f
sleep $(python3 -c "print(max(0,5-($(now)-$s)))"); done
python3 - $f <<'PY'
import sys,collections
u={'B':1/2**20,'KiB':1/1024,'MiB':1,'GiB':1024,'kB':1/1024/1000*1024,'MB':1}
def mib(s):
s=s.strip()
for k in ['GiB','MiB','KiB','kB','MB','B']:
if s.endswith(k): return float(s[:-len(k)])*u[k]
d=collections.defaultdict(lambda:{'cpu':[],'mem':[]}); per=collections.defaultdict(lambda:[0,0])
for l in open(sys.argv[1]):
t,n,c,m=l.rstrip('\n').split('\t'); c=float(c.rstrip('%')); m=mib(m.split('/')[0])
d[n]['cpu'].append(c); d[n]['mem'].append(m); per[t][0]+=c; per[t][1]+=m
print(f"\n{'container':40} {'samples':>7} {'CPU% mean':>9} {'CPU% max':>9} {'RAM MiB mean':>12} {'RAM MiB max':>11}")
for n,v in sorted(d.items()):
print(f"{n:40} {len(v['cpu']):7} {sum(v['cpu'])/len(v['cpu']):9.2f} {max(v['cpu']):9.2f} {sum(v['mem'])/len(v['mem']):12.1f} {max(v['mem']):11.1f}")
c=[x[0] for x in per.values()]; m=[x[1] for x in per.values()]
print(f"{'TOTAL (sum per sample)':40} {len(c):7} {sum(c)/len(c):9.2f} {max(c):9.2f} {sum(m)/len(m):12.1f} {max(m):11.1f}")
PY
rm -f $f; }
# watchrun PROJECT N [max_s]: wartet, bis alle Container des Projekts mit RUN=N laufen; Zeit ab T0 (Env T0)
watchrun() { local p=$1 n=$2 max=${3:-180} t0=${T0:-$(now)}; while :; do
ids=$(docker ps -q --filter label=com.docker.compose.project=$p); ok=0; tot=0
for i in $ids; do tot=$((tot+1)); docker inspect -f '{{range .Config.Env}}{{println .}}{{end}}{{.State.Running}}' $i 2>/dev/null | grep -q "^RUN=$n$" && ok=$((ok+1)); done
if [ $tot -ge 2 ] && [ $ok -eq $tot ]; then echo " RUN=$n: $ok/$tot containers running after $(el $t0 $(now)) s"; return 0; fi
[ $(python3 -c "print(int(float('$(now)')-float('$t0')))") -ge $max ] && echo " TIMEOUT RUN=$n ($ok/$tot)" && return 1; sleep 0.1; done; }
# imgsize IMAGE...: Größe laut docker image ls (containerd-Speicher zeigt Plattenbedarf und Inhalt)
imgsize() { docker image ls --format 'table {{.Repository}}:{{.Tag}}\t{{.ID}}\t{{.Size}}' | head -1; for i in "$@"; do docker image ls --format '{{.Repository}}:{{.Tag}}\t{{.ID}}\t{{.Size}}' | grep -F "$i" ; done; for i in "$@"; do echo "$i inspect .Size = $(docker image inspect -f '{{.Size}}' $i | numfmt --to=iec-i --suffix=B)"; done; }
# regdigest REPO TAG: Index-Digest auf Docker Hub (ohne buildx)
regdigest() { local t=$(curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:$1:pull" | jq -r .token)
curl -sI -H "Authorization: Bearer $t" -H 'Accept: application/vnd.oci.image.index.v1+json,application/vnd.docker.distribution.manifest.list.v2+json' "https://registry-1.docker.io/v2/$1/manifests/$2" | awk 'tolower($1)=="docker-content-digest:"{print $2}' | tr -d '\r'; }

View file

@ -0,0 +1,65 @@
$ time bash updates/health.sh --data # baseline before episode 18
PASS caddy config is valid
PASS caddy plugins compiled in: rate_limit, crowdsec, appsec
PASS caddy certificate for git.ops.example.com is valid
PASS caddy CrowdSec bouncer pulled decisions in the last 60 s
PASS forgejo API healthz: database and cache pass
PASS forgejo git over HTTPS: refs of opsadmin/selfhostedops-stack
PASS forgejo git over SSH: port 2222 answers
PASS forgejo SSO: login button leads to id.ops.example.com
PASS outline postgres accepts connections
PASS outline redis answers PING
PASS outline _health
PASS outline API auth.config lists Pocket ID
PASS outline SSO: login leads to id.ops.example.com
PASS outline database answers a query
PASS vaultwarden alive
PASS vaultwarden API config reports a version
PASS vaultwarden SSO: prevalidate hands out a token
PASS kuma public status page API
PASS kuma status page shows 4 public monitors
PASS kuma every public monitor: last heartbeat UP and younger than 180 s (monitors up age)
PASS kuma dashboard is behind the login gate
PASS kuma no active monitor is DOWN in the database
PASS ntfy health
PASS ntfy a published message can be read back
PASS n8n readiness (database reachable, migrations done)
PASS n8n active workflows (at least 10)
PASS n8n webhook kuma-incident is registered and asks for its token
PASS pocket-id healthz
PASS pocket-id discovery document names the right issuer
PASS pocket-id signing keys are published
PASS pocket-id token endpoint still knows the Outline client
PASS tinyauth healthz
PASS tinyauth login is handed to id.ops.example.com
PASS netbird dashboard
PASS netbird embedded identity provider discovery
PASS netbird management API alive and asks for a login
PASS netbird this host: management and signal connected
PASS netbird this host: at least one peer connected
PASS netbird mesh-client container: management connected
PASS ops ops-readonly healthz
PASS ops ops-actions healthz
PASS backup nightly timer is scheduled
PASS backup last finished backup is younger than 26 h (2026-10-17 01:01:22)
DATA forgejo repositories 5, users 7
DATA outline documents 143, users 6, migrations 304
DATA vaultwarden users 6, ciphers 13
DATA kuma monitors 10, notifications 3, heartbeats 19033
DATA n8n workflows 11, credentials 9, executions 30, migrations 277
DATA pocket-id users 5, clients 5
DATA netbird peers 5
43 of 43 checks passed, 0 failed
real 0m16.511s
user 0m0.931s
sys 0m1.067s
$ free -m
total used free shared buff/cache available
Mem: 3820 2813 300 22 1002 1007
Swap: 0 0 0
$ docker ps | wc -l (containers)
16

View file

@ -0,0 +1,27 @@
# Referenz ohne Manager: derselbe Test-Stack mit docker compose von Hand (Sat Oct 17 12:10:22 PM UTC 2026)
traefik/whoami:latest local = sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab [traefik/whoami@sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab]
services:
pinned:
image: traefik/whoami:v1.11.0 # exakter, absichtlich alter Tag (neu: v1.12.0)
environment:
- RUN=0
restart: unless-stopped
floating:
image: traefik/whoami:latest # lokal steht hier v1.11.0 (umgetaggt), Registry hat v1.12.0
environment:
- RUN=0
restart: unless-stopped
Container ep18-plain-pinned-1 Starting
Container ep18-plain-pinned-1 Started
Container ep18-plain-floating-1 Started
compose up -d returned after 0.57 s
RUN=1: 2/2 containers running after 0.66 s
compose up -d returned after 0.66 s
RUN=2: 2/2 containers running after 0.74 s
compose up -d returned after 0.62 s
RUN=3: 2/2 containers running after 0.71 s
NAME IMAGE STATUS
ep18-plain-floating-1 traefik/whoami:latest Up Less than a second
ep18-plain-pinned-1 traefik/whoami:v1.11.0 Up Less than a second
Network ep18-plain_default Removing
Network ep18-plain_default Removed

View file

@ -0,0 +1,37 @@
# Was ein Quickstart mit -p HOST:CONTAINER auf dieser Box bedeuten würde (Sat Oct 17 12:11:21 UTC 2026)
# Harmloser Platzhalter (whoami) statt einer Manager-Oberfläche, wenige Sekunden lang, danach entfernt
$ ufw status (Box)
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
51820/udp ALLOW Anywhere
Anywhere on wt0 ALLOW Anywhere
172.17.0.1 7422,8090/tcp ALLOW 172.18.0.0/16 # ep12 caddy-bouncer zu crowdsec
$ iptables -S DOCKER-USER # Regel aus Folge 10: von eth0 nur 80, 443, 2222, udp 443/3478
-N DOCKER-USER
-A DOCKER-USER -p tcp -m multiport --dports 80,443 -j f2b-caddy-probes
-A DOCKER-USER -i wt0 -o br-+ -j ACCEPT
-A DOCKER-USER -i eth0 -m conntrack --ctstate RELATED,ESTABLISHED -j RETURN
-A DOCKER-USER -i eth0 -p tcp -m conntrack --ctorigdstport 80 -j RETURN
-A DOCKER-USER -i eth0 -p tcp -m conntrack --ctorigdstport 443 -j RETURN
-A DOCKER-USER -i eth0 -p tcp -m conntrack --ctorigdstport 2222 -j RETURN
-A DOCKER-USER -i eth0 -p udp -m conntrack --ctorigdstport 443 -j RETURN
-A DOCKER-USER -i eth0 -p udp -m conntrack --ctorigdstport 3478 -j RETURN
-A DOCKER-USER -i eth0 -j DROP
$ docker run -d --name ep18-porttest -p 9443:80 traefik/whoami:v1.11.0 # Muster aus dem Portainer-Quickstart: -p 9443:9443
LISTEN 0 4096 0.0.0.0:9443 0.0.0.0:* users:(("docker-proxy",pid=3919039,fd=8))
LISTEN 0 4096 [::]:9443 [::]:* users:(("docker-proxy",pid=3919047,fd=8))
6 384 DROP all -- eth0 * 0.0.0.0/0 0.0.0.0/0
$ curl von außen (Arbeitsplatz) auf BOX:9443, 3 Versuche
HTTP 000
HTTP 000
HTTP 000
$ DROP-Zähler danach
36 2304 DROP all -- eth0 * 0.0.0.0/0 0.0.0.0/0
$ ohne die DOCKER-USER-Regel: ufw sieht diese Pakete nicht (Docker leitet in FORWARD um, vor ufw), deshalb wäre der Port offen
removed ep18-porttest

View file

@ -0,0 +1,45 @@
# Portainer CE 2.45.2 (LTS), Installation nach docs.portainer.io/start/install-ce/server/docker/linux, Sat Oct 17 12:11:56 PM UTC 2026
# Abweichung von der Doku: -p 127.0.0.1:9443:9443 statt -p 9443:9443, ohne -p 8000:8000 (nur für Edge-Agenten)
free before:
Mem: 3820 2799 224 22 1091 1021
$ time docker pull portainer/portainer-ce:2.45.2
Status: Downloaded newer image for portainer/portainer-ce:2.45.2
docker.io/portainer/portainer-ce:2.45.2
pull took 3.79 s
REPOSITORY:TAG IMAGE ID SIZE
portainer/portainer-ce:2.45.2 03f94a406496 201MB
portainer/portainer-ce:2.45.2 inspect .Size = 43MiB
$ docker run -d -p 127.0.0.1:9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.45.2
run returned after 0.36 s
12:12:02 +0.03 s HTTP 000
12:12:02 +0.30 s HTTP 200
UI reachable after 0.32 s
containers: 1
$ docker logs portainer (setup token redacted)
2026/10/17 12:12PM INF github.com/portainer/portainer/api/cmd/portainer/main.go:357 > encryption key file not present | filename=/run/secrets/portainer
2026/10/17 12:12PM INF github.com/portainer/portainer/api/cmd/portainer/main.go:395 > proceeding without encryption key |
2026/10/17 12:12PM INF github.com/portainer/portainer/api/database/boltdb/db.go:163 > loading PortainerDB | filename=portainer.db
2026/10/17 12:12PM INF github.com/portainer/portainer/api/internal/ssl/ssl.go:79 > no cert files found, generating self signed SSL certificates |
2026/10/17 12:12PM INF github.com/portainer/portainer/pkg/libhelm/cache/manager.go:30 > Helm registry cache initialized | user_session_timeout=8h
2026/10/17 12:12PM INF github.com/portainer/portainer/api/http/security/setuptoken/setuptoken.go:40 >
==========================
setup_token=REDACTED
Paste it into the setup screen, or send it in the X-Setup-Token header.
Start with --no-setup-token to disable.
========================== |
2026/10/17 12:12PM INF github.com/portainer/portainer/api/chisel/service.go:229 > generated a new Chisel private key file | private-key=/data/chisel/private-key.pem
2026/10/17 12:12:02 server: Reverse tunnelling enabled
2026/10/17 12:12:02 server: Fingerprint 3AVokJ4SvK2i+7acogaKxJNImh6IV1rTDJiJP1IVUKs=
2026/10/17 12:12:02 server: Listening on http://0.0.0.0:8000
2026/10/17 12:12PM INF github.com/portainer/portainer/api/cmd/portainer/main.go:705 > starting Portainer | build_number=40 go_version=go1.26.6 image_tag=2.45.2-linux-amd64 nodejs_version=v22.23.3 pnpm_version=10.27.0 version=2.45.2 webpack_version=5.107.2
2026/10/17 12:12PM INF github.com/portainer/portainer/api/http/server.go:371 > starting HTTPS server | bind_address=:9443
2026/10/17 12:12PM INF github.com/portainer/portainer/api/http/server.go:355 > starting HTTP server | bind_address=:9000
$ curl -sk https://127.0.0.1:9443/api/status
{"Version":"2.45.2","InstanceID":"22e41066-2c94-43bf-9c31-d4edccb1c2b1"}
$ curl -sk https://127.0.0.1:9443/api/users/admin/check
{"message":"No administrator account found inside the database","details":"Object not found inside the database"} HTTP 404
Mounts: /var/run/docker.sock->/var/run/docker.sock /var/lib/docker/volumes/portainer_data/_data->/data User: "" Privileged: false

View file

@ -0,0 +1,21 @@
# Portainer: Erstanmeldung ohne und mit Setup-Token, Sat Oct 17 12:12:11 PM UTC 2026
# Container gestartet 12:12:02 UTC
$ curl -sk -X POST https://127.0.0.1:9443/api/users/admin/init -d {"Username":"admin","Password":"<12+ Zeichen>"} # ohne Token, wie ein Fremder
{"message":"Invalid or missing setup token. Provide the X-Setup-Token header with the token printed in the server logs at startup.","details":"Invalid or missing setup token"} HTTP 403
$ dasselbe mit falschem X-Setup-Token
{"message":"Invalid or missing setup token. Provide the X-Setup-Token header with the token printed in the server logs at startup.","details":"Invalid or missing setup token"} HTTP 403
# 12:17:15 UTC, 5 min 13 s nach dem Start, noch kein Admin angelegt
$ curl -sk https://127.0.0.1:9443/api/users/admin/check
{"message":"Administrator initialization timeout","details":"Administrator initialization timeout"} HTTP 303
$ POST /api/users/admin/init jetzt MIT richtigem X-Setup-Token
{"message":"Administrator initialization timeout","details":"Administrator initialization timeout"} HTTP 303
$ docker logs portainer | grep timed
2026/10/17 12:17PM INF github.com/portainer/portainer/api/adminmonitor/admin_monitor.go:60 > the Portainer instance timed out for security purposes, to re-enable your Portainer instance, you will need to restart Portainer |
# 12:17:20 docker restart portainer, danach neuer Token im Log
UI reachable after 0.29 s
$ POST /api/users/admin/init mit X-Setup-Token aus docker logs
{"Id":1,"Username":"opsadmin","Password":"REDACTED","Role":1,"TokenIssueAt":0,"ThemeSettings":{"color":""},"UseCache":false,"PortainerAuthorizations":null,"EndpointAuthorizations":null} HTTP 200
$ GET /api/endpoints
[]

View file

@ -0,0 +1,25 @@
# Portainer: was sieht es vom bestehenden Stack? Sat Oct 17 12:17:28 PM UTC 2026
$ POST /api/endpoints Name=local EndpointCreationType=1 (entspricht "Get Started" im Assistenten: lokaler Socket)
{"Id":1,"Name":"local","Type":1,"URL":"unix:///var/run/docker.sock"}
endpoint id 1
$ GET /api/endpoints/E/docker/containers/json?all=1 (was Portainer sieht)
/mesh-client - running
/netbird-dashboard netbird running
/netbird-server netbird running
/portainer - running
/selfhostedops-stack-caddy-1 selfhostedops-stack running
/selfhostedops-stack-forgejo-1 selfhostedops-stack running
/selfhostedops-stack-n8n-1 selfhostedops-stack running
/selfhostedops-stack-ntfy-1 selfhostedops-stack running
/selfhostedops-stack-ops-actions-1 selfhostedops-stack running
/selfhostedops-stack-ops-readonly-1 selfhostedops-stack running
/selfhostedops-stack-outline-1 selfhostedops-stack running
/selfhostedops-stack-outline-postgres-1 selfhostedops-stack running
/selfhostedops-stack-outline-redis-1 selfhostedops-stack running
/selfhostedops-stack-pocket-id-1 selfhostedops-stack running
/selfhostedops-stack-tinyauth-1 selfhostedops-stack running
/selfhostedops-stack-uptime-kuma-1 selfhostedops-stack running
/selfhostedops-stack-vaultwarden-1 selfhostedops-stack running
containers seen: 17, docker ps -a says: 17
$ GET /api/stacks (von Portainer verwaltete Stacks)
[]

View file

@ -0,0 +1,19 @@
# Portainer: Test-Stack anlegen, dreimal neu ausrollen, Sat Oct 17 12:18:31 PM UTC 2026
traefik/whoami:latest local = sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab [traefik/whoami@sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab]
$ POST /api/stacks/create/standalone/string name ep18-whoami
{"Id":1,"Name":"ep18-whoami","ProjectPath":"/data/compose/1","EntryPoint":"docker-compose.yml","Status":3}
API returned after 0.10 s
RUN=0: 2/2 containers running after 0.61 s
$ PUT /api/stacks/1 (RUN=1, pullImage false, prune false)
HTTP 200, API returned after 0.005406 s
RUN=1: 2/2 containers running after 0.75 s
$ PUT /api/stacks/1 (RUN=2, pullImage false, prune false)
HTTP 200, API returned after 0.008136 s
RUN=2: 2/2 containers running after 0.67 s
$ PUT /api/stacks/1 (RUN=3, pullImage false, prune false)
HTTP 200, API returned after 0.007799 s
RUN=3: 2/2 containers running after 0.70 s
# where Portainer keeps the file:
OCI runtime exec failed: exec failed: unable to start container process: exec: "ls": executable file not found in $PATH
docker-compose.yml

View file

@ -0,0 +1,23 @@
# Portainer: zeigt es veraltete Images? Sat Oct 17 12:18:53 PM UTC 2026
$ GET /api/stacks/1/images_status?refresh=true
404 page not found
HTTP 404
$ GET /api/docker/1/containers/<id>/image_status?refresh=true /ep18-whoami-floating-1 traefik/whoami:latest
404 page not found
HTTP 404
$ GET /api/docker/1/containers/<id>/image_status?refresh=true /ep18-whoami-pinned-1 traefik/whoami:v1.11.0
404 page not found
HTTP 404
registry traefik/whoami:latest = sha256:c4717a8d1f0134a7444e24f881160e033991f23027c6c5a9a3f8fd22e70d1d44
registry traefik/whoami:v1.11.0 = sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab
registry traefik/whoami:v1.12.0 = sha256:c4717a8d1f0134a7444e24f881160e033991f23027c6c5a9a3f8fd22e70d1d44
local traefik/whoami:latest = sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab
# und für den echten Stack (Auswahl):
selfhostedops-stack-forgejo-1: 404 page not found
selfhostedops-stack-caddy-1: 404 page not found
mesh-client: 404 page not found
# Einordnung: Die Oberfläche von CE enthält den Code für die Spalte "Images up to date",
# die Backend-Routen /api/stacks/{id}/images_status und /api/docker/{env}/containers/{id}/image_status
# antworten in CE 2.45.2 mit 404 (siehe oben). In der Stack-Liste von CE erscheint keine solche Spalte.

View file

@ -0,0 +1,69 @@
# Portainer im Leerlauf, Test-Stack läuft, kein Browser offen
# docker stats --no-stream every 5 s for 300 s, containers matching /^portainer$/, start 12:26:49 UTC
12:26:49 portainer 0.00% 27.45MiB / 3.731GiB
12:26:54 portainer 0.02% 27.45MiB / 3.731GiB
12:26:59 portainer 0.05% 27.45MiB / 3.731GiB
12:27:04 portainer 0.02% 27.45MiB / 3.731GiB
12:27:09 portainer 0.05% 27.45MiB / 3.731GiB
12:27:14 portainer 0.03% 27.45MiB / 3.731GiB
12:27:19 portainer 2.29% 27.5MiB / 3.731GiB
12:27:24 portainer 0.04% 28.43MiB / 3.731GiB
12:27:29 portainer 0.05% 28.43MiB / 3.731GiB
12:27:34 portainer 0.02% 28.43MiB / 3.731GiB
12:27:39 portainer 0.05% 28.43MiB / 3.731GiB
12:27:44 portainer 0.02% 28.43MiB / 3.731GiB
12:27:49 portainer 0.05% 28.43MiB / 3.731GiB
12:27:54 portainer 0.02% 28.43MiB / 3.731GiB
12:27:59 portainer 0.05% 28.43MiB / 3.731GiB
12:28:04 portainer 0.02% 28.43MiB / 3.731GiB
12:28:09 portainer 0.04% 28.43MiB / 3.731GiB
12:28:14 portainer 0.02% 28.43MiB / 3.731GiB
12:28:19 portainer 0.08% 28.43MiB / 3.731GiB
12:28:24 portainer 0.02% 28.43MiB / 3.731GiB
12:28:29 portainer 0.02% 28.43MiB / 3.731GiB
12:28:34 portainer 0.03% 28.43MiB / 3.731GiB
12:28:39 portainer 0.05% 28.43MiB / 3.731GiB
12:28:44 portainer 0.03% 28.43MiB / 3.731GiB
12:28:49 portainer 0.00% 28.43MiB / 3.731GiB
12:28:54 portainer 0.02% 28.43MiB / 3.731GiB
12:28:59 portainer 0.04% 28.43MiB / 3.731GiB
12:29:04 portainer 0.02% 28.43MiB / 3.731GiB
12:29:09 portainer 0.05% 28.43MiB / 3.731GiB
12:29:14 portainer 0.02% 28.43MiB / 3.731GiB
12:29:19 portainer 0.03% 28.43MiB / 3.731GiB
12:29:24 portainer 1.11% 28.43MiB / 3.731GiB
12:29:29 portainer 0.04% 28.43MiB / 3.731GiB
12:29:34 portainer 0.01% 28.43MiB / 3.731GiB
12:29:39 portainer 0.05% 28.43MiB / 3.731GiB
12:29:45 portainer 0.01% 28.43MiB / 3.731GiB
12:29:50 portainer 0.05% 28.43MiB / 3.731GiB
12:29:55 portainer 0.02% 28.43MiB / 3.731GiB
12:30:00 portainer 0.07% 28.43MiB / 3.731GiB
12:30:05 portainer 0.02% 28.43MiB / 3.731GiB
12:30:10 portainer 0.06% 28.43MiB / 3.731GiB
12:30:15 portainer 0.02% 28.43MiB / 3.731GiB
12:30:20 portainer 0.04% 28.43MiB / 3.731GiB
12:30:25 portainer 0.02% 28.43MiB / 3.731GiB
12:30:30 portainer 0.05% 28.43MiB / 3.731GiB
12:30:35 portainer 0.02% 28.43MiB / 3.731GiB
12:30:40 portainer 0.05% 28.43MiB / 3.731GiB
12:30:45 portainer 0.01% 28.43MiB / 3.731GiB
12:30:50 portainer 0.03% 28.43MiB / 3.731GiB
12:30:55 portainer 0.02% 28.43MiB / 3.731GiB
12:31:00 portainer 0.02% 28.43MiB / 3.731GiB
12:31:05 portainer 0.00% 28.43MiB / 3.731GiB
12:31:10 portainer 0.00% 28.43MiB / 3.731GiB
12:31:15 portainer 0.00% 28.43MiB / 3.731GiB
12:31:20 portainer 0.00% 28.43MiB / 3.731GiB
12:31:25 portainer 0.00% 28.43MiB / 3.731GiB
12:31:30 portainer 0.00% 27.44MiB / 3.731GiB
12:31:35 portainer 0.00% 27.44MiB / 3.731GiB
12:31:40 portainer 0.00% 27.44MiB / 3.731GiB
12:31:45 portainer 0.00% 27.44MiB / 3.731GiB
container samples CPU% mean CPU% max RAM MiB mean RAM MiB max
portainer 60 0.08 2.29 28.3 28.4
TOTAL (sum per sample) 60 0.08 2.29 28.3 28.4
total used free shared buff/cache available
Mem: 3820 2832 248 22 1035 988
Swap: 0 0 0

View file

@ -0,0 +1,11 @@
# Portainer entfernen, Sat Oct 17 12:38:44 PM UTC 2026
$ DELETE /api/stacks/1
HTTP 204
0
portainer
portainer_data
image removed
0
0
containers now: 16
Mem: 3820 2820 457 22 836 999

View file

@ -0,0 +1,47 @@
# Arcane 2.16.1, Installation nach docker/examples/compose.basic.yaml, Sat Oct 17 12:38:59 PM UTC 2026
# Abweichung: Tag v2.16.1 statt latest, Port 127.0.0.1:3552, Projektordner /opt/ep18-arcane/projects
free before:
Mem: 3820 2792 486 22 837 1028
$ docker compose pull
Image ghcr.io/getarcaneapp/manager:v2.16.1 Pulling
Image ghcr.io/getarcaneapp/manager:v2.16.1 Pulled
pull took 5.20 s
REPOSITORY:TAG IMAGE ID SIZE
ghcr.io/getarcaneapp/manager:v2.16.1 e211067a6808 235MB
ghcr.io/getarcaneapp/manager:v2.16.1 inspect .Size = 58MiB
$ docker compose up -d
Container arcane Starting
Container arcane Started
up returned after 0.58 s
12:39:06 +0.01 s HTTP 000
12:39:07 +0.99 s HTTP 200
UI reachable after 1.01 s
containers: 1
docker health: healthy after ~5 s more
Mounts: /var/run/docker.sock->/var/run/docker.sock /var/lib/docker/volumes/arcane_arcane-data/_data->/app/data /opt/ep18-arcane/projects->/opt/ep18-arcane/projects /opt/ep18-arcane/builds->/builds User: "0:0" Privileged: false CgroupnsMode: host
$ docker logs arcane | head
Oct 17 12:39:06.889 INF Arcane is starting... version=2.16.1
Oct 17 12:39:06.890 INF Arcane Identity Configuration puid=65532 pgid=65532
Oct 17 12:39:06.897 INF Resolved database migration state provider=sqlite currentVersion=0 requiredVersion=93
Oct 17 12:39:07.284 INF Database migrations completed successfully provider=sqlite targetVersion=93
Oct 17 12:39:07.284 INF Database initialized successfully
Oct 17 12:39:07.292 INF Loaded Environment Settings Overrides count=1
Oct 17 12:39:07.294 INF Checking for orphaned volume helper containers from previous runs
Oct 17 12:39:07.393 INF Orphaned volume helper cleanup completed removedCount=0
Oct 17 12:39:07.393 INF Ensuring default settings are initialized
Oct 17 12:39:07.405 INF Default settings initialized successfully
Oct 17 12:39:07.409 INF created local environment record id=0
Oct 17 12:39:07.412 WRN Failed to sync global variables to environment environmentId=0 error="failed to write global variables file: open \"/.env.global\": openat .env.global: permission denied"
Oct 17 12:39:07.421 INF Docker API versions detected clientApiVersion=1.55 serverApiVersion=1.55 effectiveApiVersion=1.55
Oct 17 12:39:07.616 INF 👑 Default admin user created!
Oct 17 12:39:07.616 INF 🔑 Username: arcane
Oct 17 12:39:07.616 INF 🔑 Password: arcane-admin
Oct 17 12:39:07.616 INF ⚠️ User will be prompted to change password on first login
Oct 17 12:39:07.620 INF Default admin granted global Admin role assignment userId=25e4fe8b-0a9f-42f3-92e4-79138daec562
Oct 17 12:39:07.623 INF Created templates directory path=/app/data/templates
Oct 17 12:39:07.628 INF Registered scheduled volume backup jobs count=0
Oct 17 12:39:07.629 INF Registered backup schedules systemPolicies=0 volumePolicies=0
Oct 17 12:39:07.629 INF Registered environment health jobs count=1
Oct 17 12:39:07.678 INF Configured edge tunnel server pollEnabled=true grpcEnabled=true websocketEnabled=true muxEnabled=true
Oct 17 12:39:07.680 INF Using shared HTTP/gRPC listener for edge tunnel addr=:3552
Oct 17 12:39:07.685 INF Creating metadata table scope=francis.arcane.internal table=arcane_francis_metadata

View file

@ -0,0 +1,46 @@
# Arcane: Erstanmeldung mit dem dokumentierten Standardzugang, Sat Oct 17 12:48:37 PM UTC 2026
# (Container läuft seit 12:39:06 UTC, Passwort nie geändert)
$ POST /api/auth/login {"username":"arcane","password":"arcane-admin"} # Standardzugang aus der Doku, wie ein Fremder
{"success":true,"requirePasswordChange":true,"user":"arcane","roles":null,"token":"<JWT, 6598 chars>"}
$ GET /api/environments/0/containers mit diesem Token (vor jedem Passwortwechsel)
HTTP 200
$ GET /api/environments/0/containers (Anzahl)
{"success":true,"total":17}
$ GET /api/auth/me
{"username":"arcane","requiresPasswordChange":true,"isGlobalAdmin":true,"permissions":155}
# Schreibzugriff mit demselben Token, Passwort weiter arcane-admin: Test-Stack anlegen und starten
$ POST /api/environments/0/projects multipart, Teil "project" = {name: ep18-whoami, composeContent}
{"success":null,"id":null,"name":null,"path":null,"status":null,"error":"failed to create project directory: /opt/ep18-arcane/projects/ep18-whoami: create directory \"/ep18-whoami\": mkdirat ep18-whoami: permission denied (projects directory /opt/ep18-arcane/projects must be writable by uid 65532)"}
$ POST /api/environments/0/projects/<id>/up
HTTP 200, API returned after 0.007795 s
TIMEOUT RUN=0 (0/0)
# erst jetzt Passwort ändern
$ POST /api/auth/password (Passwort ändern)
{"$schema":"http://127.0.0.1:3552/api/schemas/ErrorModel.json","type":"urn:arcane:problem:password-policy:strong","title":"Bad Request","status":400,"detail":"password must be at least 12 characters and include an uppercase letter, a lowercase letter, a number, and a symbol"} HTTP 400
$ Login mit arcane-admin danach: {"body":{"success":true,"error":null},"http":"200"}
$ Login mit neuem Passwort: {"success":null,"requiresPasswordChange":null}
# Falle: Arcane läuft als uid 65532 (PUID/PGID-Vorgabe), der Projektordner gehört root. Behoben:
$ ls -ldn /opt/ep18-arcane/projects # vorher
drwxr-xr-x 2 0 0 4096 Oct 17 12:38 /opt/ep18-arcane/projects
$ chown 65532:65532 /opt/ep18-arcane/projects
drwxr-xr-x 2 65532 65532 4096 Oct 17 12:38 /opt/ep18-arcane/projects
# Zweiter Versuch, wieder nur mit dem Standardzugang (12:51:59 UTC)
$ POST /api/auth/login {"username":"arcane","password":"arcane-admin"} # Standardzugang aus der Doku, wie ein Fremder
{"success":true,"requirePasswordChange":true,"user":"arcane","roles":null,"token":"<JWT, 6598 chars>"}
$ POST /api/environments/0/projects multipart, Teil "project" = {name: ep18-whoami, composeContent}
{"success":true,"id":"870a82de-bd7a-4e6d-8765-de7f4be41cd0","name":"ep18-whoami","path":"/opt/ep18-arcane/projects/ep18-whoami","status":"stopped","error":null}
$ POST /api/environments/0/projects/<id>/up
HTTP 200, API returned after 1.143564 s
RUN=0: 2/2 containers running after 1.31 s
# erst jetzt Passwort ändern
$ POST /api/auth/password (Passwort ändern)
{"$schema":"http://127.0.0.1:3552/api/schemas/REDACTED.json","success":true,"data":{"message":"Password changed successfully"}} HTTP 200
$ Login mit arcane-admin danach: {"body":{"success":null,"error":"rate limit exceeded"},"http":"429"}
$ Login mit neuem Passwort: {"success":null,"requiresPasswordChange":null}
12:52:13 Login mit neuem Passwort: {"success":true,"requiresPasswordChange":false}
12:52:13 Login mit arcane-admin: {"error":"rate limit exceeded"} HTTP 429 (Arcane drosselt Anmeldeversuche, das alte Passwort ließ sich in diesem Moment nicht prüfen)

View file

@ -0,0 +1,24 @@
# Arcane: was sieht es vom bestehenden Stack? Sat Oct 17 12:52:18 PM UTC 2026
$ GET /api/environments/0/containers
arcane arcane running
ep18-whoami-floating-1 ep18-whoami running
ep18-whoami-pinned-1 ep18-whoami running
mesh-client - running
netbird-dashboard netbird running
netbird-server netbird running
selfhostedops-stack-caddy-1 selfhostedops-stack running
selfhostedops-stack-forgejo-1 selfhostedops-stack running
selfhostedops-stack-n8n-1 selfhostedops-stack running
selfhostedops-stack-ntfy-1 selfhostedops-stack running
selfhostedops-stack-ops-actions-1 selfhostedops-stack running
selfhostedops-stack-ops-readonly-1 selfhostedops-stack running
selfhostedops-stack-outline-1 selfhostedops-stack running
selfhostedops-stack-outline-postgres-1 selfhostedops-stack running
selfhostedops-stack-outline-redis-1 selfhostedops-stack running
selfhostedops-stack-pocket-id-1 selfhostedops-stack running
selfhostedops-stack-tinyauth-1 selfhostedops-stack running
selfhostedops-stack-uptime-kuma-1 selfhostedops-stack running
selfhostedops-stack-vaultwarden-1 selfhostedops-stack running
containers seen: 19, docker ps -a says: 19
$ GET /api/environments/0/projects
{"name":"ep18-whoami","id":"870a82de-bd7a-4e6d-8765-de7f4be41cd0","status":"running","path":"/opt/ep18-arcane/projects/ep18-whoami","isDiscovered":false,"serviceCount":2,"runningCount":2}

View file

@ -0,0 +1,26 @@
# Arcane: dreimal neu ausrollen, Sat Oct 17 12:52:24 PM UTC 2026
$ PUT /api/environments/0/projects/<id> (composeContent RUN=1), dann POST .../up
PUT HTTP 200 0.235163 s
up HTTP 200, API returned after 1.472834 s
RUN=1: 2/2 containers running after 1.81 s
$ PUT /api/environments/0/projects/<id> (composeContent RUN=2), dann POST .../up
PUT HTTP 200 0.249930 s
up HTTP 200, API returned after 1.346185 s
RUN=2: 2/2 containers running after 1.69 s
$ PUT /api/environments/0/projects/<id> (composeContent RUN=3), dann POST .../up
PUT HTTP 200 0.199330 s
up HTTP 200, API returned after 1.374159 s
RUN=3: 2/2 containers running after 1.65 s
# Nebenbefund aus dem Browser-Take A3 (13:02 UTC): der Knopf Redeploy (POST .../redeploy) zieht vorher die Images.
# Danach lief floating auf dem Registry-latest, pinned blieb auf v1.11.0:
ep18-whoami-pinned-1 image sha256:200689790a0a
ep18-whoami-floating-1 image sha256:c4717a8d1f01
registry traefik/whoami:latest = sha256:c4717a8d1f01
# für Take A2 wieder auf veraltetes latest gesetzt (13:04:50):
traefik/whoami:latest local = sha256:1699d99cb4b9acc17f74ca670b3d8d0b7ba27c948b3445f0593b58ebece92f04 [traefik/whoami@sha256:1699d99cb4b9acc17f74ca670b3d8d0b7ba27c948b3445f0593b58ebece92f04]
up HTTP 200
check-all HTTP 200 13.141059 s
floating: traefik/whoami:latest hasUpdate=false
pinned: traefik/whoami:v1.11.0 hasUpdate=false

View file

@ -0,0 +1,105 @@
# Arcane: zeigt es veraltete Images? Sat Oct 17 12:53:42 PM UTC 2026
# Testaufbau: pinned = traefik/whoami:v1.11.0 (exakt, alt; neu ist v1.12.0)
# floating = traefik/whoami:latest, lokal auf v1.10.4 umgetaggt (Registry-latest = v1.12.0)
# (erster Versuch mit latest = v1.11.0 verworfen: beide Dienste hatten dieselbe Image-ID, Arcane führte sie als ein Image)
traefik/whoami:latest local = sha256:1699d99cb4b9acc17f74ca670b3d8d0b7ba27c948b3445f0593b58ebece92f04 [traefik/whoami@sha256:1699d99cb4b9acc17f74ca670b3d8d0b7ba27c948b3445f0593b58ebece92f04]
redeploy RUN=4 with new local latest: HTTP 200
ep18-whoami-pinned-1 runs image sha256:200689790a0a
ep18-whoami-floating-1 runs image sha256:1699d99cb4b9
registry traefik/whoami:latest = sha256:c4717a8d1f0134a7444e24f881160e033991f23027c6c5a9a3f8fd22e70d1d44
registry traefik/whoami:v1.11.0 = sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab
registry traefik/whoami:v1.12.0 = sha256:c4717a8d1f0134a7444e24f881160e033991f23027c6c5a9a3f8fd22e70d1d44
registry traefik/whoami:v1.10.4 = sha256:1699d99cb4b9acc17f74ca670b3d8d0b7ba27c948b3445f0593b58ebece92f04
$ POST /api/environments/0/image-updates/check-all {}
HTTP 200 12.868782 s
$ GET /api/environments/0/image-updates/summary
{"totalImages":72,"imagesWithUpdates":12,"digestUpdates":12,"errorsCount":15}
$ GET /api/environments/0/projects/<ep18-whoami>/updates
floating: traefik/whoami:latest hasUpdate=true type=digest current=latest latestVersion= currentDigest=1699d99cb4b9 latestDigest=c4717a8d1f01
pinned: traefik/whoami:v1.11.0 hasUpdate=false type=digest current=v1.11.0 latestVersion= currentDigest=200689790a0a latestDigest=200689790a0a
$ GET /api/environments/0/images (nur Images mit gemeldetem Update)
alpine:latest digest inUse=false
caddy:2-builder-alpine,caddy:2.11.7-builder-alpine digest inUse=false
curlimages/curl:latest digest inUse=false
httpd:2.4-alpine digest inUse=false
louislam/uptime-kuma:1,selfhostedops-rollback/uptime-kuma:previous digest inUse=false
netbirdio/dashboard:latest,netbirdio/dashboard:v2.94.0 digest inUse=true
netbirdio/netbird:latest digest inUse=false
netbirdio/netbird-server:0.80.0,netbirdio/netbird-server:latest digest inUse=true
ollama/ollama:latest digest inUse=false
outlinewiki/outline:1.10.1,outlinewiki/outline:latest digest inUse=true
selfhostedops-rollback/n8n:previous,docker.n8n.io/n8nio/n8n:2.37.7,docker.n8n.io/n8nio/n8n:latest digest inUse=false
traefik/whoami:latest,traefik/whoami:v1.10.4 digest inUse=true
$ Images mit Fehler bei der Prüfung
binwiederhier/ntfy:v2.28.0,selfhostedops-rollback/ntfy:previous: distribution inspect of docker.io/selfhostedops-rollback/ntfy:previous failed: Error respo
docker:cli,selfhostedops-rollback/ops-actions:previous: distribution inspect of docker.io/selfhostedops-rollback/ops-actions:previous failed: Erro
selfhostedops-rollback/caddy:previous,selfhostedops/caddy:crowdsec: distribution inspect of docker.io/selfhostedops/caddy:crowdsec failed: Error response from
selfhostedops-rollback/dashboard:previous: distribution inspect of docker.io/selfhostedops-rollback/dashboard:previous failed: Error
selfhostedops-rollback/forgejo:previous: distribution inspect of docker.io/selfhostedops-rollback/forgejo:previous failed: Error re
selfhostedops-rollback/netbird-server:previous: distribution inspect of docker.io/selfhostedops-rollback/netbird-server:previous failed: E
selfhostedops-rollback/ops-readonly:previous: distribution inspect of docker.io/selfhostedops-rollback/ops-readonly:previous failed: Err
selfhostedops-rollback/outline:previous: distribution inspect of docker.io/selfhostedops-rollback/outline:previous failed: Error re
selfhostedops-rollback/outline-postgres:previous: distribution inspect of docker.io/selfhostedops-rollback/outline-postgres:previous failed:
selfhostedops-rollback/outline-redis:previous: distribution inspect of docker.io/selfhostedops-rollback/outline-redis:previous failed: Er
selfhostedops-rollback/pocket-id:previous,ghcr.io/pocket-id/pocket-id:v2.16.0: distribution inspect of docker.io/selfhostedops-rollback/pocket-id:previous failed: Error
selfhostedops-rollback/vaultwarden:previous: distribution inspect of docker.io/selfhostedops-rollback/vaultwarden:previous failed: Erro
selfhostedops/caddy:2.11.7-crowdsec0.14.1: distribution inspect of docker.io/selfhostedops/caddy:2.11.7-crowdsec0.14.1 failed: Error
selfhostedops/caddy:ratelimit: distribution inspect of docker.io/selfhostedops/caddy:ratelimit failed: Error response fro
selfhostedops/ops-readonly:ep11: distribution inspect of docker.io/selfhostedops/ops-readonly:ep11 failed: Error response f
registry outlinewiki/outline:1.10.1 = sha256:832051f039b446c87aa23929cf92c00980c66aaa2d744d118c48c016ec816ad8
registry outlinewiki/outline:latest = sha256:08ee9ffdb847e1bd35ded30ee832090dd06a7f93f67422687db59e70bc7f5393
local sha256:832051f039b446c87aa23929cf92c00980c66aaa2d744d118c48c016ec816ad8 [outlinewiki/outline:1.10.1 outlinewiki/outline:latest]
registry netbirdio/dashboard:v2.94.0 = sha256:70e0fc6dd3b7758148d182fb55ecd8d4f9ce01e9bba56c9389224e0b8354009d
local sha256:70e0fc6dd3b7758148d182fb55ecd8d4f9ce01e9bba56c9389224e0b8354009d [netbirdio/dashboard:latest netbirdio/dashboard:v2.94.0]
nightly 2026-10-17T03:08:31.961267Z
nightly-2a347cc 2026-10-17T03:08:31.910421Z
nightly-20261017 2026-10-17T03:08:31.835482Z
nightly-eceba73 2026-10-16T03:10:27.105075Z
nightly-20261016 2026-10-16T03:10:27.075927Z
# Einordnung: Arcane meldet in der Ansicht Updates den echten Stack (outlinewiki/outline:1.10.1) als veraltet.
# Grund: dasselbe lokale Image trägt zusätzlich den alten Tag latest (aus Folge 17), und latest zeigt in der Registry
# inzwischen auf ein anderes Image. Der Tag 1.10.1 selbst ist unverändert (Digest gleich, siehe oben).
# netbird-dashboard ebenso über den Begleit-Tag latest. Exakt festgenagelte Images ohne Begleit-Tag (forgejo 16.0.5,
# n8n 2.42.5, uptime-kuma 2.5.5) werden nicht gemeldet, obwohl Arcane neuere Versionen nicht nach Versionsnummer sucht.
# Wiederholung: dieselbe Lage (floating = lokales latest mit Tags latest und v1.10.4), check-all fünfmal
image 1699 tags: [traefik/whoami:latest traefik/whoami:v1.10.4]
13:05:35 floating: {"hasUpdate":true,"latestDigest":"c4717a8d1f01"}
13:05:48 floating: {"hasUpdate":true,"latestDigest":"c4717a8d1f01"}
13:06:01 floating: {"hasUpdate":false,"latestDigest":"1699d99cb4b9"}
13:06:28 floating: {"hasUpdate":false,"latestDigest":"1699d99cb4b9"}
13:07:29 floating: {"hasUpdate":false,"latestDigest":"1699d99cb4b9"}
# Gegenprobe: zweiten Tag entfernen (docker image rm traefik/whoami:v1.10.4 entfernt nur den Tag), dann dreimal check-all
Untagged: traefik/whoami:v1.10.4
image 1699 tags: [traefik/whoami:latest]
13:08:36 floating: {"hasUpdate":false,"latestDigest":"1699d99cb4b9"}
13:09:38 floating: {"hasUpdate":false,"latestDigest":"1699d99cb4b9"}
13:10:39 floating: {"hasUpdate":false,"latestDigest":"1699d99cb4b9"}
# Ursache der wechselnden Ergebnisse (13:11:10 UTC): Docker Hub sperrt die Box für anonyme Manifest-Abfragen
HTTP/2 429
x-ratelimit-limit: 100;w=3600
ratelimit-limit: 100;w=3600
x-ratelimit-remaining: 0;w=3600
ratelimit-remaining: 0;w=3600
ratelimit-source ist die IPv6 /64 der Box (nicht ins Bild)
# Arcane-Läufe der Update-Prüfung bis hierhin laut Log:
Oct 17 12:39:22.27 totalImages=61 failedImages=18
Oct 17 12:39:22.895 INF image scan run completed status=partial message="Image update check completed: 61 checked, 18 errors"
Oct 17 12:53:14.89 totalImages=61 failedImages=18
Oct 17 12:54:00.45 totalImages=62 failedImages=18
Oct 17 13:01:04.47 totalImages=62 failedImages=18
Oct 17 13:01:04.760 INF image scan run completed status=partial message="Image update check completed: 62 checked, 18 errors"
Oct 17 13:05:05.66 totalImages=62 failedImages=18
Oct 17 13:05:35.01 totalImages=62 failedImages=18
Oct 17 13:05:47.94 totalImages=62 failedImages=18
Oct 17 13:06:00.80 totalImages=62 failedImages=18
Oct 17 13:06:27.85 totalImages=62 failedImages=28
Oct 17 13:07:29.55 totalImages=62 failedImages=53
Oct 17 13:08:36.61 totalImages=61 failedImages=52
Oct 17 13:09:37.95 totalImages=61 failedImages=52
Oct 17 13:10:38.95 totalImages=61 failedImages=52
# Letzter gespeicherter Stand für floating (error leer, obwohl die Registry 429 liefert):
{"checkTime":"2026-10-17T13:05:59.482291489Z","hasUpdate":false,"error":"","latestDigest":"1699d99cb4b9"}

View file

@ -0,0 +1,69 @@
# Arcane im Leerlauf, Test-Stack läuft, kein Browser offen
# docker stats --no-stream every 5 s for 300 s, containers matching /^arcane$/, start 12:54:19 UTC
12:54:19 arcane 7.07% 92.55MiB / 3.731GiB
12:54:24 arcane 0.36% 92.55MiB / 3.731GiB
12:54:29 arcane 8.14% 91.79MiB / 3.731GiB
12:54:34 arcane 0.27% 91.78MiB / 3.731GiB
12:54:39 arcane 6.88% 91.78MiB / 3.731GiB
12:54:44 arcane 0.27% 91.77MiB / 3.731GiB
12:54:49 arcane 6.25% 91.78MiB / 3.731GiB
12:54:54 arcane 0.27% 91.77MiB / 3.731GiB
12:54:59 arcane 7.87% 91.78MiB / 3.731GiB
12:55:04 arcane 0.24% 91.77MiB / 3.731GiB
12:55:09 arcane 5.46% 91.81MiB / 3.731GiB
12:55:14 arcane 0.36% 91.81MiB / 3.731GiB
12:55:19 arcane 7.67% 91.81MiB / 3.731GiB
12:55:24 arcane 0.24% 91.81MiB / 3.731GiB
12:55:29 arcane 9.22% 91.81MiB / 3.731GiB
12:55:34 arcane 0.35% 91.81MiB / 3.731GiB
12:55:39 arcane 8.90% 91.82MiB / 3.731GiB
12:55:44 arcane 0.29% 91.81MiB / 3.731GiB
12:55:49 arcane 7.90% 91.81MiB / 3.731GiB
12:55:54 arcane 0.29% 91.81MiB / 3.731GiB
12:55:59 arcane 7.43% 91.82MiB / 3.731GiB
12:56:04 arcane 0.24% 91.82MiB / 3.731GiB
12:56:09 arcane 8.09% 91.82MiB / 3.731GiB
12:56:14 arcane 0.29% 91.82MiB / 3.731GiB
12:56:19 arcane 6.97% 91.82MiB / 3.731GiB
12:56:24 arcane 0.29% 91.82MiB / 3.731GiB
12:56:29 arcane 10.27% 88.59MiB / 3.731GiB
12:56:34 arcane 0.32% 88.59MiB / 3.731GiB
12:56:39 arcane 6.65% 88.59MiB / 3.731GiB
12:56:44 arcane 0.27% 88.59MiB / 3.731GiB
12:56:49 arcane 6.38% 88.59MiB / 3.731GiB
12:56:54 arcane 0.28% 88.59MiB / 3.731GiB
12:56:59 arcane 8.33% 88.59MiB / 3.731GiB
12:57:04 arcane 0.25% 88.59MiB / 3.731GiB
12:57:09 arcane 8.22% 88.62MiB / 3.731GiB
12:57:14 arcane 0.31% 88.62MiB / 3.731GiB
12:57:19 arcane 8.09% 88.7MiB / 3.731GiB
12:57:24 arcane 0.26% 88.63MiB / 3.731GiB
12:57:29 arcane 0.54% 90.2MiB / 3.731GiB
12:57:34 arcane 0.30% 88.64MiB / 3.731GiB
12:57:39 arcane 0.32% 88.64MiB / 3.731GiB
12:57:44 arcane 0.30% 88.65MiB / 3.731GiB
12:57:49 arcane 0.30% 88.65MiB / 3.731GiB
12:57:54 arcane 0.25% 88.65MiB / 3.731GiB
12:57:59 arcane 0.33% 88.65MiB / 3.731GiB
12:58:04 arcane 0.32% 88.65MiB / 3.731GiB
12:58:09 arcane 0.27% 88.59MiB / 3.731GiB
12:58:14 arcane 0.27% 88.66MiB / 3.731GiB
12:58:19 arcane 0.29% 88.66MiB / 3.731GiB
12:58:24 arcane 0.25% 88.66MiB / 3.731GiB
12:58:29 arcane 2.64% 88.66MiB / 3.731GiB
12:58:35 arcane 0.31% 87.68MiB / 3.731GiB
12:58:40 arcane 0.28% 87.68MiB / 3.731GiB
12:58:45 arcane 0.30% 87.68MiB / 3.731GiB
12:58:50 arcane 0.27% 87.55MiB / 3.731GiB
12:58:55 arcane 0.32% 87.56MiB / 3.731GiB
12:59:00 arcane 0.35% 87.56MiB / 3.731GiB
12:59:05 arcane 0.35% 87.56MiB / 3.731GiB
12:59:10 arcane 0.33% 87.59MiB / 3.731GiB
12:59:15 arcane 0.32% 87.6MiB / 3.731GiB
container samples CPU% mean CPU% max RAM MiB mean RAM MiB max
arcane 60 2.67 10.27 89.9 92.5
TOTAL (sum per sample) 60 2.67 10.27 89.9 92.5
total used free shared buff/cache available
Mem: 3820 2895 295 22 931 924
Swap: 0 0 0

View file

@ -0,0 +1,14 @@
# Arcane entfernen, Sat Oct 17 01:12:10 PM UTC 2026
Network ep18-whoami_default Removing
Network ep18-whoami_default Removed
Volume arcane_arcane-data Removing
Volume arcane_arcane-data Removed
Network arcane_default Removed
image removed
0
0
containerd
netbird
selfhostedops-stack
containers now: 16
Mem: 3820 2831 480 22 807 989

View file

@ -0,0 +1,57 @@
# Komodo 2.3.3 mit FerretDB, nach compose/ferretdb.compose.yaml + compose/compose.env (Tag v2.3.3), Sat Oct 17 01:12:29 PM UTC 2026
# Abweichungen: exakte Tags (core/periphery 2.3.3, ferretdb 2.7.0, postgres-documentdb 17-0.107.0-ferretdb-2.7.0),
# Port 127.0.0.1:9120, KOMODO_HOST=http://localhost:9120. compose.env sonst unverändert aus dem Repo, also mit den Beispielwerten:
KOMODO_DATABASE_USERNAME=admin
KOMODO_DATABASE_PASSWORD=admin
KOMODO_LOCAL_AUTH=true
KOMODO_INIT_ADMIN_USERNAME=admin
KOMODO_INIT_ADMIN_PASSWORD=changeme
KOMODO_WEBHOOK_SECRET=a_random_secret
KOMODO_JWT_SECRET=a_random_jwt_secret
KOMODO_DISABLE_USER_REGISTRATION=false
KOMODO_ENABLE_NEW_USERS=false
free before:
Mem: 3820 2806 504 22 808 1014
$ docker compose --env-file compose.env pull
Image ghcr.io/moghtech/komodo-periphery:2.3.3 Pulled
Image ghcr.io/moghtech/komodo-core:2.3.3 Pulled
Image ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0 Pulled
pull took 29.19 s
REPOSITORY:TAG IMAGE ID SIZE
ghcr.io/moghtech/komodo-core:2.3.3 bca73d0eee14 1.01GB
ghcr.io/moghtech/komodo-periphery:2.3.3 fa3f1a641a26 655MB
ghcr.io/ferretdb/ferretdb:2.7.0 5706414241eb 53.6MB
ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0 2386795ec2aa 2.31GB
ghcr.io/moghtech/komodo-core:2.3.3 inspect .Size = 258MiB
ghcr.io/moghtech/komodo-periphery:2.3.3 inspect .Size = 166MiB
ghcr.io/ferretdb/ferretdb:2.7.0 inspect .Size = 17MiB
ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0 inspect .Size = 498MiB
$ docker compose --env-file compose.env up -d
Container komodo-core-1 Starting
Container komodo-core-1 Started
Container komodo-periphery-1 Starting
Container komodo-periphery-1 Started
up returned after 1.28 s
13:13:04 +0.02 s HTTP 000
13:13:07 +3.07 s HTTP 200
UI reachable after 3.10 s
containers: 4
NAME IMAGE STATUS
komodo-core-1 ghcr.io/moghtech/komodo-core:2.3.3 Up 1 second
komodo-ferretdb-1 ghcr.io/ferretdb/ferretdb:2.7.0 Up 4 seconds (health: starting)
komodo-periphery-1 ghcr.io/moghtech/komodo-periphery:2.3.3 Up 3 seconds
komodo-postgres-1 ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0 Up 4 seconds
login loop gave up after 60 s (see next block)
periphery mounts: /proc->/proc /etc/komodo->/etc/komodo /var/lib/docker/volumes/komodo_keys/_data->/config/keys /var/run/docker.sock->/var/run/docker.sock
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
INFO: Config File Keywords: ["*config.*"]
2026-10-17T13:13:04.946697Z INFO CoreStartup: Komodo Core version: v2.3.3
2026-10-17T13:13:04.950917Z INFO CoreStartup: CoreConfig { title: "Komodo", host: "http://localhost:9120", port: 9120, bind_ip: "[::]", internet_interface: "", private_key: "file:/config/keys/core.key", periphery_public_keys: Some(["file:/config/keys/periphery.pub"]), passkey: None, timezone: "Etc/UTC", default_pagination_limit: 50, ui_write_disabled: false, disable_confirm_dialog: false, disable_websocket_reconnect: false, disable_init_resources: false, enable_fancy_toml: false, first_server_name: Some("Local"), first_server_address: None, database: DatabaseConfig { uri: "", address: "ferretdb:27017", username: "##############", password=REDACTED, app_name: "komodo_core", db_name: "komodo" }, local_auth: true, min_password=REDACTED, init_admin_username: Some("##############"), init_admin_password=REDACTED, transparent_mode: false, enable_new_users: false, disable_user_registration: false, disable_local_user_registration: None, disable_oidc_user_registration: None, lock_login_credentials_for: [], disable_non_admin_create: false, jwt=REDACTED, jwt=REDACTED, oidc_enabled: false, oidc_provider: "https://oidc.provider.internal/application/o/komodo", oidc_redirect_host: "", oidc_client_id: "", oidc_client_secret=REDACTED, oidc_use_full_email: false, oidc_additional_audiences: [], oidc_auto_redirect: false, google_oauth: NamedOauthConfig { enabled: false, client_id: "", client_secret=REDACTED, github_oauth: NamedOauthConfig { enabled: false, client_id: "", client_secret=REDACTED, auth_rate_limit_disabled: false, auth_rate_limit_max_attempts: 5, auth_rate_limit_window_seconds: 15, cors_allowed_origins: [], cors_allow_credentials: false, session_allow_cross_site: false, x_content_type_options: "nosniff", x_frame_options: "DENY", x_xss_protection: "1; mode=block", referrer_policy: "strict-origin-when-cross-origin", content_security_policy: "", webhook_secret=REDACTED, webhook_base_url: "", logging: LogConfig { level: Info, stdio: Standard, pretty: false, location: false, ansi: true, timestamps: true, otlp_endpoint: "", opentelemetry_service_name: "Komodo", opentelemetry_scope_name: "Komodo" }, pretty_startup_config: false, unsafe_unsanitized_startup_config: false, keep_stats_for_days: 14, keep_alerts_for_days: 14, resource_poll_interval: OneHour, monitoring_interval: FifteenSeconds, aws: AwsCredentials { access_key_id: "##############", secret=REDACTED, git_providers: [], image_registries: [], secret=REDACTED, ssl_enabled: false, ssl_key_file: "/config/ssl/key.pem", ssl_cert_file: "/config/ssl/cert.pem", reporting_enabled: false, reporting_private_key: "file:/config/keys/reporting.key", sync_directory: "/syncs", repo_directory: "/repo-cache", action_directory: "/action-cache", ui_path: "/app/ui", ui_index_force_no_cache: false }
2026-10-17T13:13:04.955948Z INFO CoreStartup: Writing private key to "/config/keys/core.key"
2026-10-17T13:13:04.956314Z INFO CoreStartup: Writing public key to "/config/keys/core.pub"
2026-10-17T13:13:04.957117Z INFO CoreStartup: Public Key: <public key>
2026-10-17T13:13:04.995233Z ERROR CoreStartup: FATAL: Failed to initialize database::Client | failed to initialize database client: failed to create index | index: enabled | error: Error { kind: Authentication { message: "SCRAM failure: msg_saslstart.go:47 (handler.(*Handler).msgSASLStart): msg_saslstart.go:137 (handler.(*Handler).saslStart): pool.go:101 (documentdb.(*Pool).WithConn): pool.go:90 (documentdb.(*Pool).Acquire): failed to connect to `user=admin database=postgres`:\n\t172.21.0.2:5432 (postgres): dial error: dial tcp 172.21.0.2:5432: connect: connection refused\n\t172.21.0.2:5432 (postgres): dial error: dial tcp 172.21.0.2:5432: connect: connection refused" }, labels: {}, wire_version: None, source: Some(Error { kind: Command(CommandError { code: 1, code_name: "InternalError", message: "msg_saslstart.go:47 (handler.(*Handler).msgSASLStart): msg_saslstart.go:137 (handler.(*Handler).saslStart): pool.go:101 (documentdb.(*Pool).WithConn): pool.go:90 (documentdb.(*Pool).Acquire): failed to connect to `user=admin database=postgres`:\n\t172.21.0.2:5432 (postgres): dial error: dial tcp 172.21.0.2:5432: connect: connection refused\n\t172.21.0.2:5432 (postgres): dial error: dial tcp 172.21.0.2:5432: connect: connection refused", topology_version: None }), labels: {}, wire_version: None, source: None, server_response: None }), server_response: None } | Exiting...
Updating certificates in /etc/ssl/certs...

View file

@ -0,0 +1,14 @@
# Komodo: Erstanmeldung und Beispielwerte aus compose.env, Sat Oct 17 01:15:48 PM UTC 2026
# compose.env aus dem Repo unveraendert uebernommen, darum gelten die Beispielwerte (siehe outputs/30).
$ POST /auth/login/LoginLocalUser {"username":"admin","password":"changeme"} # Beispielwerte, wie ein Fremder
{"type":"Jwt","jwt":"<180 chars>"}
$ Login mit dem alten Passwort weiter moeglich? (Komodo erzwingt keinen Wechsel)
{"login_with_example_password":"ok"}
# Belegprobe: der ausgestellte Sitzungs-Token ist mit dem Beispiel-Secret aus compose.env signiert.
# KOMODO_JWT_SECRET=a_random_jwt_secret steht offen im Repo. Wer es nicht aendert, veroeffentlicht seinen Signierschluessel.
header : {"typ":"JWT","alg":"HS256"}
HMAC-SHA256(header.payload, "a_random_jwt_secret") == Signatur des ausgestellten Tokens: True
$ Drosselung: 7 Logins mit falschem Passwort (auth_rate_limit_max_attempts 5, window 15 s)
1:401 2:401 3:401 4:401 5:401 6:429 7:429

View file

@ -0,0 +1,57 @@
# Komodo: was sieht es vom bestehenden Stack? Sat Oct 17 01:16:26 PM UTC 2026
server: [{"name":"Local","state":"Ok","version":"2.3.3"}]
$ /read/ListDockerContainers (Komodo liefert hier KEINE compose-Labels, nur Name und Zustand)
komodo-core-1 running
komodo-ferretdb-1 running
komodo-periphery-1 running
komodo-postgres-1 running
mesh-client running
netbird-dashboard running
netbird-server running
selfhostedops-stack-caddy-1 running
selfhostedops-stack-forgejo-1 running
selfhostedops-stack-n8n-1 running
selfhostedops-stack-ntfy-1 running
selfhostedops-stack-ops-actions-1 running
selfhostedops-stack-ops-readonly-1 running
selfhostedops-stack-outline-1 running
selfhostedops-stack-outline-postgres-1 running
selfhostedops-stack-outline-redis-1 running
selfhostedops-stack-pocket-id-1 running
selfhostedops-stack-tinyauth-1 running
selfhostedops-stack-uptime-kuma-1 running
selfhostedops-stack-vaultwarden-1 running
containers seen: 20, docker ps -a says: 20
$ /read/ListComposeProjects
{"name":"selfhostedops-stack","status":"running(13)","compose_files":["/opt/selfhostedops-stack/compose.yml"]}
{"name":"netbird","status":"running(2)","compose_files":["/opt/netbird/docker-compose.yml"]}
{"name":"komodo","status":"running(4)","compose_files":["/root/ep18/komodo/compose.yaml"]}
$ /read/ListStacks (Komodo-Ressourcen)
[]
# Versuch, den bestehenden selfhostedops-stack zu uebernehmen, ohne die compose.yml umzuziehen:
# Komodo-Stack im Modus "Files on Server" (files_on_host), run_directory auf den vorhandenen Ordner,
# project_name = selfhostedops-stack, damit docker compose -p denselben Namen nutzt.
{"id":"6ad3752b54566f8060596f15","name":"adopt-sho","files_on_host":true,"run_directory":"/opt/selfhostedops-stack","project_name":"selfhostedops-stack"}
$ /read/GetStack adopt-sho -> erkennt es die Services aus der vorhandenen compose.yml?
{"state":null,"status":null,"services":[],"missing_files":[],"deployed_contents_len":0}
# Nur lesen/anzeigen in diesem Lab, KEIN DeployStack auf den echten Stack. Danach wieder entfernt:
DeleteStack HTTP 200
# Warum die Uebernahme nicht greift (Kernbefund):
# Der Periphery-Agent liest Dateien nur unterhalb seines Wurzelverzeichnisses PERIPHERY_ROOT_DIRECTORY (Standard /etc/komodo),
# und genau dieses ist in den Container gemountet. /opt/selfhostedops-stack ist NICHT gemountet:
periphery mounts: /proc -> /proc
/etc/komodo -> /etc/komodo
/var/lib/docker/volumes/komodo_keys/_data -> /config/keys
/var/run/docker.sock -> /var/run/docker.sock
$ RefreshStackCache fuer einen Files-on-Server-Stack mit run_directory=/opt/selfhostedops-stack meldet daher:
ERROR: Failed to read compose file contents at "/opt/selfhostedops-stack/compose.yml"
TRACE:
1: No such file or directory (os error 2)
DeleteStack HTTP 200
# Noetig fuer echte Uebernahme ohne Umziehen: /opt/selfhostedops-stack zusaetzlich in den Periphery-Container mounten
# (Bind-Mount gleicher Pfad innen wie aussen) ODER PERIPHERY_ROOT_DIRECTORY darauf setzen. docker compose ls zeigt den
# Stack zwar an (ListComposeProjects oben), verwalten (bearbeiten/neu deployen) kann Komodo ihn ohne diesen Mount nicht.

View file

@ -0,0 +1,36 @@
# Komodo: Test-Stack anlegen und ausrollen (auto_pull=false, lokale Images), Sat Oct 17 01:21:39 PM UTC 2026
# Nebenbefund: mit dem Standard auto_pull=true zieht Komodo bei jedem Deploy die Images; auf der ratenbegrenzten Box (Docker Hub 429) schlug der Deploy dann fehl.
$ /write/CreateStack ep18-whoami (Compose im UI-Editor gespeichert)
{"id":"6ad3766354566f8060596f3c","name":"ep18-whoami","server":"6ad3746254566f8060596efc"}
$ /execute/DeployStack
{"id":"6ad3766454566f8060596f3e","operation":"DeployStack","status":"InProgress","success":true}
API returned after 0.02 s
RUN=0: 2/2 containers running after 0.66 s
# dreimal neu ausrollen
$ /write/UpdateStack (file_contents RUN=1), dann /execute/DeployStack
UpdateStack HTTP 500 0.003547 s
DeployStack HTTP 200, API returned after 0.007666 s
TIMEOUT RUN=1 (0/2)
$ /write/UpdateStack (file_contents RUN=2), dann /execute/DeployStack
UpdateStack HTTP 200 0.974497 s
DeployStack HTTP 200, API returned after 0.002596 s
RUN=2: 2/2 containers running after 2.32 s
$ /write/UpdateStack (file_contents RUN=3), dann /execute/DeployStack
UpdateStack HTTP 200 0.941809 s
DeployStack HTTP 200, API returned after 0.005923 s
RUN=3: 2/2 containers running after 1.89 s
# sauberer Durchlauf, 3 Redeploys nacheinander (Stack war beim ersten Versuch oben noch mit dem Erst-Deploy beschaeftigt, daher HTTP 500 bei RUN=1)
$ /write/UpdateStack (file_contents RUN=1), dann /execute/DeployStack
UpdateStack HTTP 200 0.911313 s
DeployStack HTTP 200, API returned after 0.002940 s
RUN=1: 2/2 containers running after 1.86 s
$ /write/UpdateStack (file_contents RUN=2), dann /execute/DeployStack
UpdateStack HTTP 200 0.836893 s
DeployStack HTTP 200, API returned after 0.002937 s
RUN=2: 2/2 containers running after 1.73 s
$ /write/UpdateStack (file_contents RUN=3), dann /execute/DeployStack
UpdateStack HTTP 200 0.933192 s
DeployStack HTTP 200, API returned after 0.002945 s
RUN=3: 2/2 containers running after 1.94 s

View file

@ -0,0 +1,11 @@
# Komodo: zeigt es veraltete Images? Sat Oct 17 01:25:47 PM UTC 2026
# Hinweis: Docker Hub hat die Box zu diesem Zeitpunkt anonym gedrosselt (429), daher zunaechst Fehlerpfad. Sauberer Lauf folgt unten.
registry traefik/whoami:latest =
registry traefik/whoami:v1.11.0 =
registry traefik/whoami:v1.12.0 =
registry traefik/whoami:v1.10.4 =
ep18-whoami-pinned-1 runs image sha256:200689790a0a
ep18-whoami-floating-1 runs image sha256:1699d99cb4b9
$ /write/CheckStackForUpdate ep18-whoami
{"service":"floating","image":"traefik/whoami:latest","latest_image":null,"update_available":true}
{"service":"pinned","image":"traefik/whoami:v1.11.0","latest_image":null,"update_available":false}

View file

@ -0,0 +1,252 @@
# Komodo im Leerlauf (Core+Periphery+FerretDB+Postgres), Test-Stack laeuft, kein Browser offen
# docker stats --no-stream every 5 s for 300 s, containers matching /komodo-(core|periphery|ferretdb|postgres)/, start 13:25:49 UTC
13:25:49 komodo-periphery-1 0.00% 136.6MiB / 3.731GiB
13:25:49 komodo-core-1 0.37% 67.97MiB / 3.731GiB
13:25:49 komodo-ferretdb-1 0.81% 33.14MiB / 3.731GiB
13:25:49 komodo-postgres-1 0.46% 113.4MiB / 3.731GiB
13:25:55 komodo-periphery-1 0.00% 136.6MiB / 3.731GiB
13:25:55 komodo-core-1 0.07% 67.97MiB / 3.731GiB
13:25:55 komodo-ferretdb-1 0.04% 33.14MiB / 3.731GiB
13:25:55 komodo-postgres-1 2.82% 113.4MiB / 3.731GiB
13:26:00 komodo-periphery-1 0.52% 146.3MiB / 3.731GiB
13:26:00 komodo-core-1 0.18% 67.97MiB / 3.731GiB
13:26:00 komodo-ferretdb-1 0.10% 33.14MiB / 3.731GiB
13:26:00 komodo-postgres-1 0.15% 113.4MiB / 3.731GiB
13:26:05 komodo-periphery-1 0.03% 136.6MiB / 3.731GiB
13:26:05 komodo-core-1 0.64% 67.97MiB / 3.731GiB
13:26:05 komodo-ferretdb-1 1.32% 33.14MiB / 3.731GiB
13:26:05 komodo-postgres-1 3.73% 113.4MiB / 3.731GiB
13:26:10 komodo-periphery-1 0.03% 136.6MiB / 3.731GiB
13:26:10 komodo-core-1 0.07% 67.98MiB / 3.731GiB
13:26:10 komodo-ferretdb-1 0.00% 33.14MiB / 3.731GiB
13:26:10 komodo-postgres-1 0.02% 113.4MiB / 3.731GiB
13:26:15 komodo-periphery-1 0.08% 136.6MiB / 3.731GiB
13:26:15 komodo-core-1 0.23% 70.59MiB / 3.731GiB
13:26:15 komodo-ferretdb-1 0.17% 33.14MiB / 3.731GiB
13:26:15 komodo-postgres-1 3.26% 113.9MiB / 3.731GiB
13:26:20 komodo-periphery-1 0.02% 136.6MiB / 3.731GiB
13:26:20 komodo-core-1 0.36% 70.93MiB / 3.731GiB
13:26:20 komodo-ferretdb-1 0.71% 33.16MiB / 3.731GiB
13:26:20 komodo-postgres-1 0.49% 113.9MiB / 3.731GiB
13:26:25 komodo-periphery-1 0.03% 136.6MiB / 3.731GiB
13:26:25 komodo-core-1 1.01% 71.26MiB / 3.731GiB
13:26:25 komodo-ferretdb-1 1.05% 33.2MiB / 3.731GiB
13:26:25 komodo-postgres-1 3.54% 114.6MiB / 3.731GiB
13:26:30 komodo-periphery-1 0.26% 146.3MiB / 3.731GiB
13:26:30 komodo-core-1 0.21% 71.23MiB / 3.731GiB
13:26:30 komodo-ferretdb-1 0.11% 33.21MiB / 3.731GiB
13:26:30 komodo-postgres-1 0.17% 114.6MiB / 3.731GiB
13:26:35 komodo-periphery-1 0.02% 136.6MiB / 3.731GiB
13:26:35 komodo-core-1 1.76% 72.74MiB / 3.731GiB
13:26:35 komodo-ferretdb-1 2.61% 33.21MiB / 3.731GiB
13:26:35 komodo-postgres-1 4.52% 115MiB / 3.731GiB
13:26:40 komodo-periphery-1 0.03% 136.6MiB / 3.731GiB
13:26:40 komodo-core-1 0.17% 72.91MiB / 3.731GiB
13:26:40 komodo-ferretdb-1 0.00% 33.21MiB / 3.731GiB
13:26:40 komodo-postgres-1 0.08% 115MiB / 3.731GiB
13:26:45 komodo-periphery-1 0.06% 136.9MiB / 3.731GiB
13:26:45 komodo-core-1 0.24% 73.18MiB / 3.731GiB
13:26:45 komodo-ferretdb-1 0.16% 33.22MiB / 3.731GiB
13:26:45 komodo-postgres-1 3.03% 115MiB / 3.731GiB
13:26:50 komodo-periphery-1 0.03% 136.8MiB / 3.731GiB
13:26:50 komodo-core-1 0.40% 73.18MiB / 3.731GiB
13:26:50 komodo-ferretdb-1 0.75% 33.22MiB / 3.731GiB
13:26:50 komodo-postgres-1 0.44% 115MiB / 3.731GiB
13:26:55 komodo-periphery-1 0.03% 136.8MiB / 3.731GiB
13:26:55 komodo-core-1 0.09% 72.89MiB / 3.731GiB
13:26:55 komodo-ferretdb-1 0.05% 33.22MiB / 3.731GiB
13:26:55 komodo-postgres-1 2.61% 115MiB / 3.731GiB
13:27:00 komodo-periphery-1 0.18% 146.6MiB / 3.731GiB
13:27:00 komodo-core-1 9.36% 73.6MiB / 3.731GiB
13:27:00 komodo-ferretdb-1 0.89% 33.22MiB / 3.731GiB
13:27:00 komodo-postgres-1 0.65% 115MiB / 3.731GiB
13:27:05 komodo-periphery-1 0.03% 136.9MiB / 3.731GiB
13:27:05 komodo-core-1 0.54% 73.6MiB / 3.731GiB
13:27:05 komodo-ferretdb-1 1.14% 33.27MiB / 3.731GiB
13:27:05 komodo-postgres-1 3.80% 116MiB / 3.731GiB
13:27:10 komodo-periphery-1 0.00% 136.9MiB / 3.731GiB
13:27:10 komodo-core-1 0.30% 73.74MiB / 3.731GiB
13:27:10 komodo-ferretdb-1 0.17% 33.34MiB / 3.731GiB
13:27:10 komodo-postgres-1 0.13% 116.1MiB / 3.731GiB
13:27:15 komodo-periphery-1 0.01% 136.9MiB / 3.731GiB
13:27:15 komodo-core-1 0.05% 74.16MiB / 3.731GiB
13:27:15 komodo-ferretdb-1 0.04% 33.41MiB / 3.731GiB
13:27:15 komodo-postgres-1 2.88% 116.6MiB / 3.731GiB
13:27:20 komodo-periphery-1 0.02% 136.9MiB / 3.731GiB
13:27:20 komodo-core-1 1.96% 74.17MiB / 3.731GiB
13:27:20 komodo-ferretdb-1 1.69% 33.53MiB / 3.731GiB
13:27:20 komodo-postgres-1 3.15% 116.9MiB / 3.731GiB
13:27:25 komodo-periphery-1 0.03% 135.4MiB / 3.731GiB
13:27:25 komodo-core-1 0.06% 74.14MiB / 3.731GiB
13:27:25 komodo-ferretdb-1 0.00% 33.53MiB / 3.731GiB
13:27:25 komodo-postgres-1 2.36% 116.9MiB / 3.731GiB
13:27:30 komodo-periphery-1 0.87% 145.1MiB / 3.731GiB
13:27:30 komodo-core-1 0.11% 73.92MiB / 3.731GiB
13:27:30 komodo-ferretdb-1 0.00% 33.53MiB / 3.731GiB
13:27:30 komodo-postgres-1 0.04% 116.9MiB / 3.731GiB
13:27:35 komodo-periphery-1 0.01% 135.4MiB / 3.731GiB
13:27:35 komodo-core-1 0.33% 73.92MiB / 3.731GiB
13:27:35 komodo-ferretdb-1 0.67% 33.53MiB / 3.731GiB
13:27:35 komodo-postgres-1 3.46% 116.9MiB / 3.731GiB
13:27:40 komodo-periphery-1 0.00% 135.5MiB / 3.731GiB
13:27:40 komodo-core-1 0.03% 73.92MiB / 3.731GiB
13:27:40 komodo-ferretdb-1 0.00% 33.53MiB / 3.731GiB
13:27:40 komodo-postgres-1 0.04% 116.9MiB / 3.731GiB
13:27:45 komodo-periphery-1 0.00% 135.5MiB / 3.731GiB
13:27:45 komodo-core-1 0.07% 73.92MiB / 3.731GiB
13:27:45 komodo-ferretdb-1 0.00% 33.54MiB / 3.731GiB
13:27:45 komodo-postgres-1 2.88% 117MiB / 3.731GiB
13:27:50 komodo-periphery-1 0.00% 135.4MiB / 3.731GiB
13:27:50 komodo-core-1 0.30% 73.92MiB / 3.731GiB
13:27:50 komodo-ferretdb-1 0.56% 33.54MiB / 3.731GiB
13:27:50 komodo-postgres-1 0.35% 117MiB / 3.731GiB
13:27:55 komodo-periphery-1 0.00% 135.4MiB / 3.731GiB
13:27:55 komodo-core-1 0.05% 73.92MiB / 3.731GiB
13:27:55 komodo-ferretdb-1 0.00% 33.54MiB / 3.731GiB
13:27:55 komodo-postgres-1 3.06% 117MiB / 3.731GiB
13:28:00 komodo-periphery-1 1.02% 145.2MiB / 3.731GiB
13:28:00 komodo-core-1 0.19% 73.92MiB / 3.731GiB
13:28:00 komodo-ferretdb-1 0.11% 33.54MiB / 3.731GiB
13:28:00 komodo-postgres-1 2.03% 117MiB / 3.731GiB
13:28:05 komodo-periphery-1 0.01% 135.5MiB / 3.731GiB
13:28:05 komodo-core-1 0.48% 73.92MiB / 3.731GiB
13:28:05 komodo-ferretdb-1 0.97% 33.54MiB / 3.731GiB
13:28:05 komodo-postgres-1 3.54% 117MiB / 3.731GiB
13:28:10 komodo-periphery-1 0.01% 135.4MiB / 3.731GiB
13:28:10 komodo-core-1 0.04% 73.92MiB / 3.731GiB
13:28:10 komodo-ferretdb-1 0.00% 33.54MiB / 3.731GiB
13:28:10 komodo-postgres-1 0.19% 117MiB / 3.731GiB
13:28:15 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:28:15 komodo-core-1 0.05% 73.93MiB / 3.731GiB
13:28:15 komodo-ferretdb-1 0.00% 19.4MiB / 3.731GiB
13:28:15 komodo-postgres-1 3.05% 116.9MiB / 3.731GiB
13:28:20 komodo-periphery-1 0.01% 102.4MiB / 3.731GiB
13:28:20 komodo-core-1 0.26% 73.93MiB / 3.731GiB
13:28:20 komodo-ferretdb-1 0.49% 19.4MiB / 3.731GiB
13:28:20 komodo-postgres-1 0.41% 116.9MiB / 3.731GiB
13:28:25 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:28:25 komodo-core-1 0.05% 73.93MiB / 3.731GiB
13:28:25 komodo-ferretdb-1 0.00% 19.4MiB / 3.731GiB
13:28:25 komodo-postgres-1 2.83% 116.9MiB / 3.731GiB
13:28:30 komodo-periphery-1 0.43% 112MiB / 3.731GiB
13:28:30 komodo-core-1 0.22% 73.93MiB / 3.731GiB
13:28:30 komodo-ferretdb-1 0.13% 19.4MiB / 3.731GiB
13:28:30 komodo-postgres-1 1.74% 116.9MiB / 3.731GiB
13:28:35 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:28:35 komodo-core-1 0.30% 73.93MiB / 3.731GiB
13:28:35 komodo-ferretdb-1 0.52% 19.4MiB / 3.731GiB
13:28:35 komodo-postgres-1 3.48% 116.9MiB / 3.731GiB
13:28:40 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:28:40 komodo-core-1 0.05% 73.93MiB / 3.731GiB
13:28:40 komodo-ferretdb-1 0.00% 19.4MiB / 3.731GiB
13:28:40 komodo-postgres-1 0.01% 116.9MiB / 3.731GiB
13:28:45 komodo-periphery-1 0.01% 102.4MiB / 3.731GiB
13:28:45 komodo-core-1 0.07% 73.93MiB / 3.731GiB
13:28:45 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:28:45 komodo-postgres-1 2.87% 116.9MiB / 3.731GiB
13:28:50 komodo-periphery-1 0.04% 102.4MiB / 3.731GiB
13:28:50 komodo-core-1 0.04% 73.93MiB / 3.731GiB
13:28:50 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:28:50 komodo-postgres-1 0.03% 116.9MiB / 3.731GiB
13:28:55 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:28:55 komodo-core-1 0.06% 73.93MiB / 3.731GiB
13:28:55 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:28:55 komodo-postgres-1 2.81% 116.9MiB / 3.731GiB
13:29:00 komodo-periphery-1 0.75% 112.1MiB / 3.731GiB
13:29:00 komodo-core-1 0.23% 73.93MiB / 3.731GiB
13:29:00 komodo-ferretdb-1 0.11% 19.35MiB / 3.731GiB
13:29:00 komodo-postgres-1 2.74% 116.9MiB / 3.731GiB
13:29:05 komodo-periphery-1 0.01% 102.4MiB / 3.731GiB
13:29:05 komodo-core-1 0.05% 73.93MiB / 3.731GiB
13:29:05 komodo-ferretdb-1 0.17% 19.35MiB / 3.731GiB
13:29:05 komodo-postgres-1 2.85% 116.9MiB / 3.731GiB
13:29:10 komodo-periphery-1 0.01% 102.4MiB / 3.731GiB
13:29:10 komodo-core-1 0.03% 73.93MiB / 3.731GiB
13:29:10 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:29:10 komodo-postgres-1 0.03% 116.9MiB / 3.731GiB
13:29:15 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:29:15 komodo-core-1 0.05% 73.93MiB / 3.731GiB
13:29:15 komodo-ferretdb-1 0.32% 19.35MiB / 3.731GiB
13:29:15 komodo-postgres-1 2.61% 116.9MiB / 3.731GiB
13:29:20 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:29:20 komodo-core-1 0.37% 73.93MiB / 3.731GiB
13:29:20 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:29:20 komodo-postgres-1 0.00% 116.9MiB / 3.731GiB
13:29:25 komodo-periphery-1 0.01% 102.4MiB / 3.731GiB
13:29:25 komodo-core-1 0.05% 73.93MiB / 3.731GiB
13:29:25 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:29:25 komodo-postgres-1 2.84% 116.9MiB / 3.731GiB
13:29:30 komodo-periphery-1 0.66% 111.9MiB / 3.731GiB
13:29:30 komodo-core-1 0.31% 73.93MiB / 3.731GiB
13:29:30 komodo-ferretdb-1 0.15% 19.35MiB / 3.731GiB
13:29:30 komodo-postgres-1 2.96% 116.9MiB / 3.731GiB
13:29:35 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:29:35 komodo-core-1 0.04% 73.93MiB / 3.731GiB
13:29:35 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:29:35 komodo-postgres-1 2.95% 116.9MiB / 3.731GiB
13:29:40 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:29:40 komodo-core-1 0.05% 73.93MiB / 3.731GiB
13:29:40 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:29:40 komodo-postgres-1 0.01% 116.9MiB / 3.731GiB
13:29:45 komodo-periphery-1 0.00% 102.4MiB / 3.731GiB
13:29:45 komodo-core-1 0.04% 73.93MiB / 3.731GiB
13:29:45 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:29:45 komodo-postgres-1 2.04% 116.9MiB / 3.731GiB
13:29:50 komodo-periphery-1 0.03% 102.4MiB / 3.731GiB
13:29:50 komodo-core-1 0.04% 74.01MiB / 3.731GiB
13:29:50 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:29:50 komodo-postgres-1 0.02% 116.9MiB / 3.731GiB
13:29:55 komodo-periphery-1 0.01% 102.4MiB / 3.731GiB
13:29:55 komodo-core-1 0.19% 74.05MiB / 3.731GiB
13:29:55 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:29:55 komodo-postgres-1 2.96% 116.9MiB / 3.731GiB
13:30:01 komodo-periphery-1 1.05% 111.9MiB / 3.731GiB
13:30:01 komodo-core-1 0.22% 74.05MiB / 3.731GiB
13:30:01 komodo-ferretdb-1 0.19% 19.35MiB / 3.731GiB
13:30:01 komodo-postgres-1 3.05% 117MiB / 3.731GiB
13:30:06 komodo-periphery-1 0.01% 102.4MiB / 3.731GiB
13:30:06 komodo-core-1 0.04% 74.05MiB / 3.731GiB
13:30:06 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:30:06 komodo-postgres-1 2.53% 117MiB / 3.731GiB
13:30:11 komodo-periphery-1 0.04% 102.4MiB / 3.731GiB
13:30:11 komodo-core-1 0.05% 74.05MiB / 3.731GiB
13:30:11 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:30:11 komodo-postgres-1 0.02% 117MiB / 3.731GiB
13:30:16 komodo-periphery-1 0.01% 102.4MiB / 3.731GiB
13:30:16 komodo-core-1 0.04% 74.05MiB / 3.731GiB
13:30:16 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:30:16 komodo-postgres-1 2.54% 117MiB / 3.731GiB
13:30:21 komodo-periphery-1 0.00% 102.3MiB / 3.731GiB
13:30:21 komodo-core-1 0.04% 74.05MiB / 3.731GiB
13:30:21 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:30:21 komodo-postgres-1 0.00% 117MiB / 3.731GiB
13:30:26 komodo-periphery-1 0.00% 102.3MiB / 3.731GiB
13:30:26 komodo-core-1 0.11% 74.05MiB / 3.731GiB
13:30:26 komodo-ferretdb-1 0.00% 19.35MiB / 3.731GiB
13:30:26 komodo-postgres-1 2.98% 117MiB / 3.731GiB
13:30:31 komodo-periphery-1 0.78% 112.2MiB / 3.731GiB
13:30:31 komodo-core-1 0.24% 74.05MiB / 3.731GiB
13:30:31 komodo-ferretdb-1 0.12% 19.36MiB / 3.731GiB
13:30:31 komodo-postgres-1 2.84% 117MiB / 3.731GiB
13:30:36 komodo-periphery-1 0.01% 102.3MiB / 3.731GiB
13:30:36 komodo-core-1 0.03% 74.05MiB / 3.731GiB
13:30:36 komodo-ferretdb-1 0.00% 19.36MiB / 3.731GiB
13:30:36 komodo-postgres-1 2.44% 117MiB / 3.731GiB
13:30:41 komodo-periphery-1 0.00% 102.3MiB / 3.731GiB
13:30:41 komodo-core-1 0.05% 74.05MiB / 3.731GiB
13:30:41 komodo-ferretdb-1 0.00% 19.36MiB / 3.731GiB
13:30:41 komodo-postgres-1 0.02% 117MiB / 3.731GiB
13:30:46 komodo-periphery-1 0.00% 102.3MiB / 3.731GiB
13:30:46 komodo-core-1 0.05% 74.05MiB / 3.731GiB
13:30:46 komodo-ferretdb-1 0.00% 18.63MiB / 3.731GiB
13:30:46 komodo-postgres-1 2.74% 117MiB / 3.731GiB
container samples CPU% mean CPU% max RAM MiB mean RAM MiB max
komodo-core-1 60 0.38 9.36 73.2 74.2
komodo-ferretdb-1 60 0.27 2.61 26.1 33.5
komodo-periphery-1 60 0.12 1.05 120.4 146.6
komodo-postgres-1 60 1.87 4.52 116.2 117.0
TOTAL (sum per sample) 60 2.65 11.08 335.9 369.7
total used free shared buff/cache available
Mem: 3820 2952 202 45 985 868
Swap: 0 0 0

View file

@ -0,0 +1,19 @@
# Komodo entfernen, Sat Oct 17 01:38:35 PM UTC 2026
DestroyStack HTTP 200
DeleteStack HTTP 200
0
Volume komodo_ferretdb-state Removing
Volume komodo_keys Removed
Volume komodo_ferretdb-state Removed
Network komodo_default Removed
removed ghcr.io/moghtech/komodo-core:2.3.3
removed ghcr.io/moghtech/komodo-periphery:2.3.3
removed ghcr.io/ferretdb/ferretdb:2.7.0
removed ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
0
0
containerd
netbird
selfhostedops-stack
containers now: 16
Mem: 3820 2803 598 22 713 1016

View file

@ -0,0 +1,36 @@
# Dockge 1.5.0, Installation nach compose.yaml im Repo louislam/dockge (Tag 1.5.0), Sat Oct 17 01:42:05 PM UTC 2026
# Abweichungen: exakter Tag 1.5.0 statt 1, Port 127.0.0.1:5001, Stacks-Verzeichnis /opt/stacks (wie in der Doku)
# Laborhinweis: Docker Hub hatte die IPv6-Adresse der Box anonym gedrosselt (429). Fuer den Pull die Registry
# voruebergehend auf IPv4 gepinnt (eigener, freier Zaehler). Nach dem Pull wieder entfernt.
free before:
Mem: 3820 2843 555 22 716 977
$ docker compose pull
Image louislam/dockge:1.5.0 Pulling
Image louislam/dockge:1.5.0 Pulled
pull took 13.14 s
REPOSITORY:TAG IMAGE ID SIZE
louislam/dockge:1.5.0 335c6368b880 1.17GB
louislam/dockge:1.5.0 inspect .Size = 252MiB
(hosts-Pin wieder entfernt)
$ docker compose up -d
Container dockge-dockge-1 Starting
Container dockge-dockge-1 Started
up returned after 0.45 s
13:42:21 +0.01 s HTTP 000
13:42:22 +1.89 s HTTP 200
UI reachable after 1.90 s
containers: 1
Mounts: /root/ep18/dockge/data->/app/data /opt/stacks->/opt/stacks /var/run/docker.sock->/var/run/docker.sock User: "" Privileged: false
$ Titel der Startseite
<title>Dockge</title>
2026-10-17T13:42:22Z [SERVER] INFO: Welcome to dockge!
2026-10-17T13:42:22Z [SERVER] INFO: NODE_ENV: production
2026-10-17T13:42:22Z [SERVER] INFO: Server Type: HTTP
2026-10-17T13:42:22Z [SERVER] INFO: Data Dir: ./data/
2026-10-17T13:42:22Z [DB] WARN: ENOENT: no such file or directory, open 'data/db-config.json'
2026-10-17T13:42:22Z [DB] INFO: Database Type: sqlite
2026-10-17T13:42:22Z [SERVER] INFO: Connected to the database
2026-10-17T13:42:22Z [SERVER] INFO: JWT secret is not found, generate one.
2026-10-17T13:42:22Z [SERVER] INFO: Stored JWT secret into database
2026-10-17T13:42:22Z [SERVER] INFO: No user, need setup
2026-10-17T13:42:22Z [SERVER] INFO: Listening on 5001

View file

@ -0,0 +1,10 @@
# Dockge: Erstanmeldung (offener Einrichtungsassistent), Sat Oct 17 01:43:26 PM UTC 2026
Beim Verbinden ohne Anmeldung sendet Dockge von sich aus das Ereignis "setup": true
$ emit setup (erster Besucher legt den Administrator an, ohne Token):
{"ok":true,"msg":"successAdded","msgi18n":true}
$ zweiter Versuch, setup erneut (als waere man ein weiterer Fremder):
{"ok":false,"msg":"Dockge has been initialized. If you want to run setup again, please delete the database."}
# Beleg aus dem Server-Log: ohne Benutzer wird jeder Besucher zur Einrichtungsseite geschickt
2026-10-17T13:42:22Z [SERVER] INFO: No user, need setup
2026-10-17T13:42:46Z [SERVER] INFO: Redirect to setup page
2026-10-17T13:42:56Z [SERVER] INFO: Redirect to setup page

View file

@ -0,0 +1,17 @@
# Dockge: was sieht es vom bestehenden Stack? Sat Oct 17 01:44:17 PM UTC 2026
# Dockge listet /opt/stacks (verwaltet) plus docker compose ls --all (alles uebrige, als nicht-verwaltet).
$ Dockge Stack-Liste (requestStackList):
netbird status=3 (running) managedByDockge=false composeFileName=compose.yaml
selfhostedops-stack status=3 (running) managedByDockge=false composeFileName=compose.yaml
Stacks total: 2
# Was Dockge mit dem nicht-verwalteten Stack tun kann (in der Oberflaeche geprueft):
# Dockge listet selfhostedops-stack und netbird als "active", aber die Detailseite zeigt nur den Satz
# "This stack is not managed by Dockge." und bietet KEINE Aktion an (kein Edit, Restart, Update, Stop, nur die Liste).
# isManagedByDockge wird erst wahr, wenn /opt/stacks/<name>/compose.yaml existiert (Code: stack.ts get isManagedByDockge).
# Noetig fuer echte Verwaltung ohne Neuaufbau: die compose.yml nach /opt/stacks/selfhostedops-stack/ legen
# (verschieben oder dorthin spiegeln) und den Stack neu einlesen.
$ ls /opt/stacks (Dockges verwaltetes Verzeichnis, leer)
total 8
drwxr-xr-x 2 root root 4096 Oct 17 13:39 .
drwxr-xr-x 6 root root 4096 Oct 17 13:39 ..

View file

@ -0,0 +1,6 @@
# Dockge: Test-Stack anlegen und ausrollen (13:44:33)
$ deployStack RUN=0: ok=true socket-Antwort nach 0.53 s (Deployed)
# dreimal neu ausrollen (deployStack speichert die compose und ruft docker compose up -d)
$ deployStack RUN=1: ok=true socket-Antwort nach 1.03 s (Deployed)
$ deployStack RUN=2: ok=true socket-Antwort nach 0.68 s (Deployed)
$ deployStack RUN=3: ok=true socket-Antwort nach 0.98 s (Deployed)

View file

@ -0,0 +1,9 @@
# Dockge: zeigt es veraltete Images? Sat Oct 17 01:45:16 PM UTC 2026
# Dockge 1.5.0 hat KEINE Update-Erkennung. Es gibt keinen Indikator fuer veraltete Images und keine Spalte dafuer.
# Die socket.io-Ereignisse eines Stacks sind: deployStack, saveStack, deleteStack, getStack, startStack,
# stopStack, restartStack, updateStack, downStack, serviceStatusList (aus dem Code, backend/agent-socket-handlers).
# 'updateStack' ist kein Vergleich, sondern fuehrt blind docker compose pull + up -d aus (backend/stack.ts update()):
async update(socket) { ... "docker","compose","pull" ... "docker","compose","up","-d","--remove-orphans" ... }
# Der letzte Commit im Repo ist vom 25.04.2026, die letzte Version 1.5.0 vom 30.03.2025 (ueber ein Jahr alt).
# Dockge meldet im eigenen Info-Kanal zwar eine neuere Version fuer SICH selbst (latestVersion 1.4.2 im Info-Event,
# ein Fehler im eingefrorenen Stand), aber nichts ueber die Images der verwalteten Stacks.

View file

@ -0,0 +1,69 @@
# Dockge im Leerlauf, Test-Stack laeuft, kein Browser offen
# docker stats --no-stream every 5 s for 300 s, containers matching /dockge/, start 13:45:17 UTC
13:45:17 dockge-dockge-1 0.16% 233.7MiB / 3.731GiB
13:45:22 dockge-dockge-1 0.41% 233.7MiB / 3.731GiB
13:45:27 dockge-dockge-1 0.16% 233.8MiB / 3.731GiB
13:45:32 dockge-dockge-1 0.42% 233.8MiB / 3.731GiB
13:45:37 dockge-dockge-1 0.18% 215.1MiB / 3.731GiB
13:45:42 dockge-dockge-1 0.21% 215.8MiB / 3.731GiB
13:45:47 dockge-dockge-1 0.33% 216MiB / 3.731GiB
13:45:52 dockge-dockge-1 0.42% 216.5MiB / 3.731GiB
13:45:57 dockge-dockge-1 0.21% 216.5MiB / 3.731GiB
13:46:02 dockge-dockge-1 0.38% 216.6MiB / 3.731GiB
13:46:07 dockge-dockge-1 0.40% 216.6MiB / 3.731GiB
13:46:12 dockge-dockge-1 0.42% 216.8MiB / 3.731GiB
13:46:17 dockge-dockge-1 4.49% 217MiB / 3.731GiB
13:46:22 dockge-dockge-1 0.52% 216.4MiB / 3.731GiB
13:46:27 dockge-dockge-1 0.17% 234.6MiB / 3.731GiB
13:46:32 dockge-dockge-1 0.26% 234.7MiB / 3.731GiB
13:46:37 dockge-dockge-1 0.50% 234.7MiB / 3.731GiB
13:46:42 dockge-dockge-1 0.42% 234.7MiB / 3.731GiB
13:46:47 dockge-dockge-1 0.63% 234.8MiB / 3.731GiB
13:46:52 dockge-dockge-1 8.22% 251.3MiB / 3.731GiB
13:46:57 dockge-dockge-1 0.17% 235.6MiB / 3.731GiB
13:47:02 dockge-dockge-1 11.20% 235.9MiB / 3.731GiB
13:47:07 dockge-dockge-1 0.41% 235.9MiB / 3.731GiB
13:47:12 dockge-dockge-1 0.42% 235.9MiB / 3.731GiB
13:47:17 dockge-dockge-1 0.35% 236MiB / 3.731GiB
13:47:22 dockge-dockge-1 0.37% 236MiB / 3.731GiB
13:47:27 dockge-dockge-1 1.67% 218.5MiB / 3.731GiB
13:47:33 dockge-dockge-1 0.28% 218.6MiB / 3.731GiB
13:47:38 dockge-dockge-1 0.21% 218.6MiB / 3.731GiB
13:47:43 dockge-dockge-1 1.76% 218.7MiB / 3.731GiB
13:47:48 dockge-dockge-1 8.05% 219MiB / 3.731GiB
13:47:53 dockge-dockge-1 0.16% 219MiB / 3.731GiB
13:47:58 dockge-dockge-1 11.53% 219.1MiB / 3.731GiB
13:48:03 dockge-dockge-1 0.15% 219.1MiB / 3.731GiB
13:48:08 dockge-dockge-1 6.90% 219.1MiB / 3.731GiB
13:48:13 dockge-dockge-1 0.29% 219.1MiB / 3.731GiB
13:48:18 dockge-dockge-1 11.18% 219.1MiB / 3.731GiB
13:48:23 dockge-dockge-1 0.27% 219.2MiB / 3.731GiB
13:48:28 dockge-dockge-1 11.09% 219.3MiB / 3.731GiB
13:48:33 dockge-dockge-1 0.46% 219.3MiB / 3.731GiB
13:48:38 dockge-dockge-1 8.95% 219.4MiB / 3.731GiB
13:48:43 dockge-dockge-1 0.30% 236.4MiB / 3.731GiB
13:48:48 dockge-dockge-1 10.78% 236.4MiB / 3.731GiB
13:48:53 dockge-dockge-1 0.20% 235.2MiB / 3.731GiB
13:48:58 dockge-dockge-1 9.20% 235.3MiB / 3.731GiB
13:49:03 dockge-dockge-1 20.88% 235.7MiB / 3.731GiB
13:49:08 dockge-dockge-1 10.94% 238.4MiB / 3.731GiB
13:49:13 dockge-dockge-1 0.34% 238.4MiB / 3.731GiB
13:49:18 dockge-dockge-1 11.28% 238.5MiB / 3.731GiB
13:49:23 dockge-dockge-1 0.24% 238.6MiB / 3.731GiB
13:49:28 dockge-dockge-1 12.68% 238.7MiB / 3.731GiB
13:49:33 dockge-dockge-1 0.44% 238.9MiB / 3.731GiB
13:49:38 dockge-dockge-1 10.58% 238.9MiB / 3.731GiB
13:49:43 dockge-dockge-1 0.46% 238.9MiB / 3.731GiB
13:49:48 dockge-dockge-1 9.39% 238.9MiB / 3.731GiB
13:49:53 dockge-dockge-1 0.25% 239.1MiB / 3.731GiB
13:49:58 dockge-dockge-1 10.11% 239.1MiB / 3.731GiB
13:50:03 dockge-dockge-1 0.38% 239.2MiB / 3.731GiB
13:50:08 dockge-dockge-1 10.65% 239.2MiB / 3.731GiB
13:50:13 dockge-dockge-1 0.26% 239.2MiB / 3.731GiB
container samples CPU% mean CPU% max RAM MiB mean RAM MiB max
dockge-dockge-1 60 3.57 20.88 229.1 251.3
TOTAL (sum per sample) 60 3.57 20.88 229.1 251.3
total used free shared buff/cache available
Mem: 3820 3022 185 22 922 798
Swap: 0 0 0

View file

@ -0,0 +1,13 @@
# Dockge und Test-Stack entfernen, Sat Oct 17 01:53:36 PM UTC 2026
Network ep18-whoami_default Removing
Network ep18-whoami_default Removed
Network dockge_default Removing
Network dockge_default Removed
dockge image removed
whoami images removed
0
containerd
netbird
selfhostedops-stack
containers now: 16
Mem: 3820 2873 524 22 718 947

View file

@ -0,0 +1,44 @@
$ bash updates/health.sh --data (Endkontrolle)
PASS netbird this host: at least one peer connected
PASS netbird mesh-client container: management connected
PASS ops ops-readonly healthz
PASS ops ops-actions healthz
PASS backup nightly timer is scheduled
PASS backup last finished backup is younger than 26 h (2026-10-17 01:01:22)
DATA forgejo repositories 5, users 7
DATA outline documents 143, users 6, migrations 304
DATA vaultwarden users 6, ciphers 13
DATA kuma monitors 10, notifications 3, heartbeats 19972
DATA n8n workflows 11, credentials 9, executions 30, migrations 277
DATA pocket-id users 5, clients 5
DATA netbird peers 5
43 of 43 checks passed, 0 failed
real 0m15.728s
user 0m1.026s
sys 0m0.875s
$ docker compose ls
NAME STATUS CONFIG FILES
netbird running(2) /opt/netbird/docker-compose.yml
selfhostedops-stack running(13) /opt/selfhostedops-stack/compose.yml
$ docker ps count: 16
$ ep18-Spuren?
0
0
0
0
containerd
netbird
selfhostedops-stack
arcane.compose.yaml
arcane.sh
chown.log
dockge-compose.yaml
komodo.sh
lib.sh
plain
portainer.sh
testcompose.sh

42
managers/portainer.sh Normal file
View file

@ -0,0 +1,42 @@
#!/usr/bin/env bash
# ep18 Portainer-Messung über die API. Aufruf: portainer.sh init|see|deploy|redeploy|updates|cleanup
. /root/ep18/lib.sh; . /root/ep18/testcompose.sh; set -a; . /root/ep18/secrets.env; set +a
U=https://127.0.0.1:9443/api
J() { curl -sk -H "Authorization: Bearer $(cat /root/ep18/.ptok 2>/dev/null)" "$@"; }
case $1 in
init)
TOK=$(docker logs portainer 2>&1 | grep -o 'setup_token=[^ ]*' | tail -1 | cut -d= -f2)
echo '$ POST /api/users/admin/init mit X-Setup-Token aus docker logs'
curl -sk -w " HTTP %{http_code}\n" -X POST $U/users/admin/init -H 'Content-Type: application/json' -H "X-Setup-Token: $TOK" -d "{\"Username\":\"opsadmin\",\"Password\":\"$PORTAINER_PW\"}" | sed -E 's/"Password":"[^"]*"/"Password":"REDACTED"/'
curl -sk -X POST $U/auth -H 'Content-Type: application/json' -d "{\"Username\":\"opsadmin\",\"Password\":\"$PORTAINER_PW\"}" | jq -r .jwt > /root/ep18/.ptok; chmod 600 /root/ep18/.ptok
echo '$ GET /api/endpoints'; J $U/endpoints | jq -c '[.[]|{Id,Name,Type,URL}]'
;;
see)
E=$(J $U/endpoints | jq '.[0].Id'); echo "endpoint id $E"
echo '$ GET /api/endpoints/E/docker/containers/json?all=1 (was Portainer sieht)'
J "$U/endpoints/$E/docker/containers/json?all=1" | jq -r '.[] | [.Names[0], (.Labels["com.docker.compose.project"] // "-"), .State] | @tsv' | sort | column -t
echo "containers seen: $(J "$U/endpoints/$E/docker/containers/json?all=1" | jq length), docker ps -a says: $(docker ps -aq | wc -l)"
echo '$ GET /api/stacks (von Portainer verwaltete Stacks)'; J $U/stacks | jq -c '[.[]|{Id,Name,Status}]'
;;
deploy)
E=$(J $U/endpoints | jq '.[0].Id'); D=$(mktemp -d); writetest $D 0
echo '$ POST /api/stacks/create/standalone/string name ep18-whoami'
T0=$(now); jq -n --rawfile c $D/compose.yaml '{name:"ep18-whoami", stackFileContent:$c, env:[]}' | J -X POST "$U/stacks/create/standalone/string?endpointId=$E" -H 'Content-Type: application/json' -d @- | jq -c '{Id,Name,ProjectPath,EntryPoint,Status}'; echo "API returned after $(el $T0 $(now)) s"
T0=$T0 watchrun ep18-whoami 0
;;
redeploy)
E=$(J $U/endpoints | jq '.[0].Id'); S=$(J $U/stacks | jq '.[]|select(.Name=="ep18-whoami")|.Id'); D=$(mktemp -d)
for n in 1 2 3; do writetest $D $n
echo "\$ PUT /api/stacks/$S (RUN=$n, pullImage false, prune false)"
export T0=$(now); jq -n --rawfile c $D/compose.yaml '{stackFileContent:$c, env:[], prune:false, pullImage:false}' | J -X PUT "$U/stacks/$S?endpointId=$E" -H 'Content-Type: application/json' -d @- -o /dev/null -w " HTTP %{http_code}, API returned after %{time_total} s\n"
watchrun ep18-whoami $n; sleep 3; done
;;
updates)
E=$(J $U/endpoints | jq '.[0].Id'); S=$(J $U/stacks | jq '.[]|select(.Name=="ep18-whoami")|.Id')
echo "\$ GET /api/stacks/$S/images_status?refresh=true"; J "$U/stacks/$S/images_status?refresh=true" -w " HTTP %{http_code}\n"
for c in $(docker ps -q --filter label=com.docker.compose.project=ep18-whoami); do n=$(docker inspect -f '{{.Name}} {{.Config.Image}}' $c)
echo "\$ GET /api/docker/$E/containers/<id>/image_status?refresh=true $n"; J "$U/docker/$E/containers/$c/image_status?refresh=true" -w " HTTP %{http_code}\n"; done
for t in latest v1.11.0 v1.12.0; do echo "registry traefik/whoami:$t = $(regdigest traefik/whoami $t)"; done
echo "local traefik/whoami:latest = $(docker image inspect -f '{{.Id}}' traefik/whoami:latest)"
;;
esac

16
managers/testcompose.sh Normal file
View file

@ -0,0 +1,16 @@
# writetest DIR N: kleiner Test-Stack, zwei whoami, einer exakt alt, einer "latest" lokal veraltet
writetest() { mkdir -p $1; cat > $1/compose.yaml <<YML
services:
pinned:
image: traefik/whoami:v1.11.0 # exakter, absichtlich alter Tag (neu: v1.12.0)
environment:
- RUN=$2
restart: unless-stopped
floating:
image: traefik/whoami:latest # lokal steht hier v1.10.4 (umgetaggt), Registry hat v1.12.0
environment:
- RUN=$2
restart: unless-stopped
YML
}
stale_latest() { docker pull -q traefik/whoami:v1.10.4 >/dev/null && docker tag traefik/whoami:v1.10.4 traefik/whoami:latest && docker image inspect -f 'traefik/whoami:latest local = {{.Id}} {{.RepoDigests}}' traefik/whoami:latest; }