Add Docker deployment for Unraid

- Dockerfile with nginx:alpine for static file serving
- docker-compose.yml with port 9113:80 mapping
- deploy.sh for git-based deployment to Unraid
- setup-unraid.sh for initial server configuration
- manage.sh for container operations (logs, status, restart, etc.)
- .gitignore to exclude config.js

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michael Simard
2026-01-22 09:42:20 -06:00
parent 86d34e9462
commit 8396fbcf6f
10 changed files with 1551 additions and 162 deletions

View File

@@ -4,6 +4,45 @@
box-sizing: border-box;
}
/* CSS Variables for theming */
:root {
--bg-primary: #000000;
--bg-secondary: #0a0a0a;
--bg-tertiary: #1a1a1a;
--color-primary: #00ffff;
--color-secondary: #00cccc;
--color-text: #00ffff;
--color-warning: #ff00ff;
--color-critical: #ffffff;
--border-color: #00ffff;
--shadow-color: rgba(0, 255, 255, 0.3);
--shadow-color-intense: rgba(0, 255, 255, 0.6);
--panel-hover-gradient: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
--progress-gradient: linear-gradient(90deg, #00ffff, #00cccc);
--progress-warning: linear-gradient(90deg, #ff00ff, #ff00cc);
--progress-critical: linear-gradient(90deg, #ffffff, #cccccc);
--scanline-color: #00ffff;
}
body.light-mode {
--bg-primary: #ffffff;
--bg-secondary: #f0f5fa;
--bg-tertiary: #d9e6f2;
--color-primary: #0052a3;
--color-secondary: #003d7a;
--color-text: #002952;
--color-warning: #d9534f;
--color-critical: #c9302c;
--border-color: #0066cc;
--shadow-color: rgba(0, 82, 163, 0.2);
--shadow-color-intense: rgba(0, 82, 163, 0.4);
--panel-hover-gradient: linear-gradient(45deg, #0066cc, #d9534f, #0066cc);
--progress-gradient: linear-gradient(90deg, #0066cc, #0052a3);
--progress-warning: linear-gradient(90deg, #f0ad4e, #ec971f);
--progress-critical: linear-gradient(90deg, #d9534f, #c9302c);
--scanline-color: #0066cc;
}
@keyframes borderGlow {
0%, 100% {
box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 30px rgba(0, 255, 255, 0.1);
@@ -31,14 +70,35 @@
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
body {
font-family: 'Courier New', monospace;
background-color: #000000;
color: #00ffff;
background-color: var(--bg-primary);
color: var(--color-text);
min-height: 100vh;
padding: 20px;
position: relative;
overflow-x: hidden;
transition: background-color 0.3s ease, color 0.3s ease;
}
body::before {
@@ -48,7 +108,7 @@ body::before {
left: 0;
width: 100%;
height: 3px;
background: linear-gradient(90deg, transparent, #00ffff, transparent);
background: linear-gradient(90deg, transparent, var(--scanline-color), transparent);
animation: scanline 4s linear infinite;
opacity: 0.3;
pointer-events: none;
@@ -64,20 +124,24 @@ header {
text-align: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 2px solid #00ffff;
border-bottom: 2px solid var(--border-color);
}
.title {
font-size: 2.5rem;
letter-spacing: 4px;
text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
color: var(--color-primary);
margin-bottom: 10px;
}
body:not(.light-mode) .title {
text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
animation: titleGlow 3s ease-in-out infinite;
}
.timestamp {
font-size: 0.9rem;
color: #00cccc;
color: var(--color-secondary);
letter-spacing: 2px;
}
@@ -96,12 +160,16 @@ header {
}
.panel {
background-color: #0a0a0a;
border: 2px solid #00ffff;
background-color: var(--bg-secondary);
border: 2px solid var(--border-color);
padding: 20px;
box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
animation: borderGlow 2s ease-in-out infinite;
box-shadow: 0 0 15px var(--shadow-color);
position: relative;
transition: background-color 0.3s ease, border-color 0.3s ease;
}
body:not(.light-mode) .panel {
animation: borderGlow 2s ease-in-out infinite;
}
.panel::before {
@@ -111,7 +179,7 @@ header {
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
background: var(--panel-hover-gradient);
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
@@ -131,8 +199,12 @@ header {
letter-spacing: 3px;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #00ffff;
text-shadow: 0 0 5px #00ffff;
border-bottom: 1px solid var(--border-color);
color: var(--color-primary);
}
body:not(.light-mode) .panel-title {
text-shadow: 0 0 5px var(--color-primary);
}
/* Resource Section */
@@ -188,6 +260,14 @@ header {
.resource-item {
margin-bottom: 20px;
padding: 10px;
transition: background-color 0.3s ease, border-color 0.3s ease;
}
body.light-mode .resource-item {
border: 1px solid var(--border-color);
background-color: var(--bg-secondary);
padding: 15px;
}
.resource-label {
@@ -221,27 +301,27 @@ header {
.ring-text {
font-size: 2rem;
font-weight: bold;
fill: #00ffff;
fill: var(--color-primary);
font-family: 'Courier New', monospace;
}
.ring-text-small {
font-size: 1.5rem;
font-weight: bold;
fill: #00ffff;
fill: var(--color-primary);
font-family: 'Courier New', monospace;
}
.ring-fraction {
font-size: 0.7rem;
fill: #00ffff;
fill: var(--color-primary);
font-family: 'Courier New', monospace;
opacity: 1;
}
.ring-fraction-small {
font-size: 0.5rem;
fill: #00ffff;
fill: var(--color-primary);
font-family: 'Courier New', monospace;
opacity: 1;
}
@@ -250,16 +330,17 @@ header {
position: relative;
width: 100%;
height: 20px;
background-color: #1a1a1a;
border: 1px solid #00ffff;
background-color: var(--bg-tertiary);
border: 1px solid var(--border-color);
overflow: hidden;
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #00ffff, #00cccc);
background: var(--progress-gradient);
transition: width 0.3s ease, background 0.3s ease;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
box-shadow: 0 0 10px var(--shadow-color);
position: relative;
overflow: hidden;
}
@@ -285,13 +366,13 @@ header {
}
.progress-fill.warning {
background: linear-gradient(90deg, #ff00ff, #ff00cc);
box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
background: var(--progress-warning);
box-shadow: 0 0 10px var(--shadow-color-intense);
}
.progress-fill.critical {
background: linear-gradient(90deg, #ffffff, #cccccc);
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
background: var(--progress-critical);
box-shadow: 0 0 10px var(--shadow-color-intense);
}
.progress-text {
@@ -300,8 +381,17 @@ header {
left: 50%;
transform: translate(-50%, -50%);
font-weight: bold;
text-shadow: 1px 1px 2px #000000;
font-size: 0.75rem;
color: #ffffff;
}
body.light-mode .progress-text {
color: #ffffff;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
body:not(.light-mode) .progress-text {
text-shadow: 1px 1px 2px #000000;
}
/* Parity Status */
@@ -314,8 +404,17 @@ header {
display: flex;
justify-content: space-between;
padding: 10px;
background-color: #1a1a1a;
border-left: 3px solid #00ffff;
background-color: var(--bg-tertiary);
transition: background-color 0.3s ease, border-color 0.3s ease;
}
body:not(.light-mode) .status-item {
border-left: 3px solid var(--border-color);
}
body.light-mode .status-item {
border: 1px solid var(--border-color);
background-color: var(--bg-secondary);
}
.status-label {
@@ -324,20 +423,32 @@ header {
}
.status-value {
color: #00ffff;
color: var(--color-primary);
}
.status-value.error {
color: #ffffff;
text-shadow: 0 0 5px #ffffff;
color: var(--color-critical);
}
body:not(.light-mode) .status-value.error {
text-shadow: 0 0 5px var(--color-critical);
}
/* Disk Array */
.disk-item {
margin-bottom: 8px;
padding: 8px;
background-color: #1a1a1a;
border-left: 3px solid #00ffff;
background-color: var(--bg-tertiary);
transition: background-color 0.3s ease, border-color 0.3s ease;
}
body:not(.light-mode) .disk-item {
border-left: 3px solid var(--border-color);
}
body.light-mode .disk-item {
border: 1px solid var(--border-color);
background-color: var(--bg-secondary);
}
.disk-header {
@@ -353,7 +464,7 @@ header {
}
.disk-info {
color: #00cccc;
color: var(--color-secondary);
}
/* Docker Containers */
@@ -365,9 +476,10 @@ header {
.docker-item {
padding: 15px;
background-color: #1a1a1a;
border: 1px solid #00ffff;
background-color: var(--bg-tertiary);
border: 1px solid var(--border-color);
text-align: center;
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.docker-name {
@@ -375,6 +487,10 @@ header {
margin-bottom: 10px;
letter-spacing: 1px;
font-size: 0.9rem;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.docker-status {
@@ -386,8 +502,15 @@ header {
.docker-status.running {
background-color: #00ffff;
color: #000000;
color: #003d7a;
box-shadow: 0 0 5px #00ffff;
font-weight: bold;
}
body.light-mode .docker-status.running {
background-color: #00cc99;
color: #ffffff;
box-shadow: 0 0 5px rgba(0, 204, 153, 0.5);
}
.docker-status.stopped,
@@ -397,12 +520,214 @@ header {
box-shadow: 0 0 5px #666666;
}
body.light-mode .docker-status.stopped,
body.light-mode .docker-status.offline {
background-color: #6c757d;
color: #ffffff;
box-shadow: 0 0 5px rgba(108, 117, 125, 0.5);
}
.docker-status.paused {
background-color: #ff00ff;
color: #000000;
color: #003d7a;
box-shadow: 0 0 5px #ff00ff;
}
body.light-mode .docker-status.paused {
background-color: #f0ad4e;
color: #ffffff;
box-shadow: 0 0 5px rgba(240, 173, 78, 0.5);
}
.webui-link {
color: var(--color-primary);
text-decoration: none;
font-size: 0.85rem;
padding: 2px 6px;
border: 1px solid var(--border-color);
border-radius: 3px;
transition: all 0.3s ease;
display: inline-block;
}
.webui-link:hover {
background-color: var(--color-primary);
color: var(--bg-primary);
box-shadow: 0 0 10px var(--shadow-color-intense);
text-shadow: none;
transform: scale(1.05);
}
/* Tooltips */
.tooltip-container {
position: relative;
display: inline-block;
}
.tooltip {
visibility: hidden;
opacity: 0;
position: absolute;
z-index: 1000;
background-color: var(--bg-secondary);
border: 2px solid var(--border-color);
padding: 10px;
border-radius: 4px;
box-shadow: 0 0 20px var(--shadow-color-intense);
min-width: 200px;
transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
pointer-events: none;
animation: fadeIn 0.3s ease;
}
.tooltip-container:hover .tooltip {
visibility: visible;
opacity: 1;
}
.tooltip-title {
font-weight: bold;
color: var(--color-primary);
margin-bottom: 8px;
border-bottom: 1px solid var(--border-color);
padding-bottom: 5px;
}
.tooltip-content {
color: var(--color-secondary);
font-size: 0.85rem;
line-height: 1.5;
}
.tooltip-row {
display: flex;
justify-content: space-between;
margin-bottom: 4px;
}
.tooltip-label {
color: var(--color-primary);
}
.tooltip-value {
color: var(--color-text);
font-weight: bold;
}
/* Trend Indicators */
.trend-indicator {
display: inline-block;
margin-left: 8px;
font-size: 0.8rem;
animation: pulse 2s ease-in-out infinite;
}
.trend-up {
color: var(--color-warning);
}
.trend-down {
color: var(--color-primary);
}
.trend-stable {
color: var(--color-secondary);
opacity: 0.5;
}
/* Enhanced Ring Chart Container */
.mini-ring-chart-container {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
cursor: pointer;
transition: transform 0.2s ease;
}
.mini-ring-chart-container:hover {
transform: scale(1.05);
}
.mini-ring-chart-container .tooltip {
bottom: 100%;
left: 50%;
transform: translateX(-50%);
margin-bottom: 10px;
}
/* Enhanced text transitions */
.ring-text, .ring-text-small {
transition: fill 0.3s ease;
}
.ring-fraction, .ring-fraction-small {
transition: fill 0.3s ease;
}
/* Disk item enhancements */
.disk-item {
transition: background-color 0.3s ease, border-left-color 0.3s ease;
cursor: pointer;
}
body:not(.light-mode) .disk-item:hover {
background-color: #252525;
border-left-color: #ff00ff;
}
body.light-mode .disk-item:hover {
background-color: #d0d0d0;
border-left-color: var(--color-warning);
}
/* Light mode text overrides to ensure no black text */
body.light-mode .disk-name,
body.light-mode .docker-name,
body.light-mode .status-label,
body.light-mode .resource-label {
color: var(--color-text);
}
body.light-mode .disk-info {
color: var(--color-secondary);
}
.disk-item .tooltip {
top: 0;
left: 100%;
margin-left: 10px;
}
/* Theme Toggle Button */
.theme-toggle {
position: fixed;
top: 20px;
right: 20px;
background-color: var(--bg-secondary);
border: 2px solid var(--border-color);
color: var(--color-primary);
padding: 10px 20px;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
cursor: pointer;
letter-spacing: 2px;
transition: all 0.3s ease;
box-shadow: 0 0 10px var(--shadow-color);
z-index: 1000;
}
.theme-toggle:hover {
background-color: var(--color-primary);
color: var(--bg-primary);
box-shadow: 0 0 20px var(--shadow-color-intense);
transform: scale(1.05);
}
body:not(.light-mode) .theme-toggle:hover {
text-shadow: none;
}
/* Responsive Design */
@media (max-width: 768px) {
.title {
@@ -417,4 +742,9 @@ header {
.docker-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.tooltip {
min-width: 150px;
font-size: 0.75rem;
}
}