Initial commit: Socktop WebTerm with k3s deployment
- Multi-architecture Docker image (ARM64 + AMD64) - Kubernetes manifests for 3-replica deployment - Traefik ingress configuration - NGINX Proxy Manager integration - ConfigMap-based configuration - Automated build and deployment scripts - Session monitoring tools
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
services:
|
||||
socktop-webterm:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: socktop-webterm
|
||||
restart: unless-stopped
|
||||
|
||||
# Use host network mode for direct access to host network
|
||||
# This allows the container to reach your Pis on port 8443
|
||||
# Note: The containerized socktop-agent runs on port 3001 (not 3000)
|
||||
# to avoid conflicts with any agent running on the host machine
|
||||
network_mode: "host"
|
||||
|
||||
volumes:
|
||||
# Mount configuration files from host (read-write so root can access them)
|
||||
- ./files:/files
|
||||
|
||||
# Optional: persist socktop data
|
||||
- socktop-data:/home/socktop/.local/share/socktop
|
||||
|
||||
# Optional: persist logs
|
||||
- ./logs:/var/log/supervisor
|
||||
|
||||
environment:
|
||||
# Terminal settings
|
||||
- TERM=xterm-256color
|
||||
|
||||
# Optional: Set timezone
|
||||
- TZ=America/New_York
|
||||
|
||||
# Optional: Logging level
|
||||
- RUST_LOG=info
|
||||
|
||||
# Security settings
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
# Resource limits (adjust as needed)
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "2.0"
|
||||
memory: 1G
|
||||
reservations:
|
||||
cpus: "0.5"
|
||||
memory: 256M
|
||||
|
||||
# Health check
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8082/"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
socktop-data:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user