Files
supervisor-ui/docker-compose.yml
Sebastian Krüger e0cfd371c0
Some checks failed
Build and Push Docker Image to Gitea / build-and-push (push) Failing after 1m22s
feat: initial commit - Supervisor UI with Next.js 16 and Tailwind CSS 4
- Modern web interface for Supervisor process management
- Built with Next.js 16 (App Router) and Tailwind CSS 4
- Full XML-RPC client implementation for Supervisor API
- Real-time process monitoring with auto-refresh
- Process control: start, stop, restart operations
- Modern dashboard with system status and statistics
- Dark/light theme with OKLCH color system
- Docker multi-stage build with runtime env var configuration
- Gitea CI/CD workflow for automated builds
- Comprehensive documentation (README, IMPLEMENTATION, DEPLOYMENT)

Features:
- Backend proxy pattern for secure API communication
- React Query for state management and caching
- TypeScript strict mode with Zod validation
- Responsive design with mobile support
- Health check endpoint for monitoring
- Non-root user security in Docker

Environment Variables:
- SUPERVISOR_HOST, SUPERVISOR_PORT
- SUPERVISOR_USERNAME, SUPERVISOR_PASSWORD (optional)
- Configurable at build-time and runtime

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 18:23:51 +01:00

39 lines
1.2 KiB
YAML

version: '3.8'
services:
supervisor-ui:
build:
context: .
dockerfile: Dockerfile
args:
# Build-time arguments (optional, defaults in Dockerfile)
SUPERVISOR_HOST: ${SUPERVISOR_HOST:-localhost}
SUPERVISOR_PORT: ${SUPERVISOR_PORT:-9001}
# For using pre-built image from registry:
# image: dev.pivoine.art/valknar/supervisor-ui:latest
image: supervisor-ui:latest
container_name: supervisor-ui
ports:
- "3000:3000"
environment:
# Runtime environment variables (can override build-time values)
- NODE_ENV=production
- SUPERVISOR_HOST=${SUPERVISOR_HOST:-localhost}
- SUPERVISOR_PORT=${SUPERVISOR_PORT:-9001}
- SUPERVISOR_USERNAME=${SUPERVISOR_USERNAME:-}
- SUPERVISOR_PASSWORD=${SUPERVISOR_PASSWORD:-}
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
- supervisor-network
networks:
supervisor-network:
name: supervisor-network
driver: bridge