feat: live Docker data — containers, services, logs, metrics via dockerode
All checks were successful
continuous-integration/drone/push Build is passing

- Backend: rewrote containers/services/logs/metrics routes to use dockerode
- docker-compose: mount /var/run/docker.sock, run backend as root
- .drone.yml: sync docker-compose.yml from Gitea on deploy
- Frontend: Containers page shows real data with wired start/stop/restart
- Frontend: Services page shows Docker Compose stacks with health status
- Frontend: Metrics page adds disk (docker df) and containers cards + chart legend
- Frontend: Logs page replaces text input with container dropdown + auto-refresh
This commit is contained in:
Ernie Butcher
2026-03-18 18:33:25 -04:00
parent 36c76edb29
commit 4233734759
20 changed files with 1146 additions and 172 deletions

View File

@@ -91,14 +91,20 @@ steps:
# ─── Deploy ────────────────────────────────────────────────────────────────
- name: deploy
image: appleboy/drone-ssh
environment:
GITEA_TOKEN:
from_secret: gitea_token
settings:
host: 100.116.40.103
username: root
key:
from_secret: ssh_private_key
envs:
- GITEA_TOKEN
port: 22
script:
- cd /opt/server-manager
- curl -sfH "Authorization:token $GITEA_TOKEN" https://git.jiosii.com/api/v1/repos/ops/server-manager/raw/docker-compose.yml -o docker-compose.yml
- docker compose pull
- docker compose up -d --remove-orphans
- docker image prune -f