From 2972a83b2e2dc2cc844eafe5a2b3666362c25594 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 09:58:18 +0000 Subject: [PATCH] Add Docker WebUI MVP --- index.html | 10 +- src/App.tsx | 10 +- src/index.css | 105 ++++++------- src/pages/ContainerDetails.tsx | 276 +++++++++++++++++++++++++++++++++ src/pages/Dashboard.tsx | 184 ++++++++++++++++++++++ src/pages/Login.tsx | 80 ++++++++++ src/pages/Settings.tsx | 178 +++++++++++++++++++++ tailwind.config.ts | 18 +-- 8 files changed, 788 insertions(+), 73 deletions(-) create mode 100644 src/pages/ContainerDetails.tsx create mode 100644 src/pages/Dashboard.tsx create mode 100644 src/pages/Login.tsx create mode 100644 src/pages/Settings.tsx diff --git a/index.html b/index.html index 1647cb9..11593f9 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,12 @@
-abc123def456
+Image
+redis:7.2-alpine
+Status
+Running (3d 14h)
+IP Address
+172.18.0.5
+Ports
+6379:6379/tcp
+Network
+bridge
+Restart Policy
+unless-stopped
+/var/lib/docker/volumes/redis_data
+→ /data
+Real-time usage
+of 512 MB limit
+↓ 0.8 MB/s ↑ 0.4 MB/s
+Read + Write
++ Logs are streamed in real-time and not stored. Filtering happens client-side. +
+Enable Alerts
++ Send Discord notifications for this container +
+Alert on Stop
++ Notify when container stops or crashes +
++ Logs matching this pattern will trigger an alert +
++ Minimum time between alerts to prevent spam +
++ Leave empty to use global webhook +
+docker-node-01
+4 cores @ 3.2 GHz
+51% of 16 GB
+62% of 200 GB
+| Status | +Name | +ID | +CPU | +Memory | +Uptime | +Actions | +
|---|---|---|---|---|---|---|
|
+ |
+ {container.name} | +{container.id} | +{container.cpu} | +{container.memory} | +{container.uptime} | +
+
+ {container.status === "running" ? (
+ <>
+
+
+ >
+ ) : (
+
+ )}
+
+ |
+
api-backend stopped
+2 minutes ago
++ Lightweight container monitoring and control +
++ First time? You'll be prompted to change your password after login. +
++ Default webhook for all containers without a custom webhook +
++ How often to collect metrics from Docker (lower = more resource usage) +
++ Number of data points to keep in memory (for charts) +
++ Default regex pattern for detecting errors in logs +
++ Default time between alerts to prevent spam +
++ Used for timestamps in logs and alerts +
+Dark Mode
++ Use dark theme (recommended for monitoring dashboards) +
+