Files
socktop-webterm/docker-compose.yml
T
jasonwitty 15ace386e3
Build and Deploy to K3s / test (push) Successful in 1m34s
Build and Deploy to K3s / lint (push) Successful in 58s
Build and Deploy to K3s / build-and-push (push) Successful in 2m3s
Build and Deploy to K3s / deploy (push) Successful in 8s
update restricted shell to force (–no-kill) option.
2026-08-24 07:33:43 -07:00

70 lines
1.9 KiB
YAML

services:
socktop-webterm:
build:
context: .
dockerfile: Dockerfile
container_name: socktop-webterm
restart: unless-stopped
# Standard bridge networking
ports:
- "8082:8082" # Webterm HTTP server
- "3001:3001" # Socktop agent (optional)
volumes:
# Mount configuration files directly to proper locations
- ./files/alacritty.toml:/home/socktop/.config/alacritty/alacritty.toml:ro
- ./files/catppuccin-frappe.toml:/home/socktop/.config/alacritty/catppuccin-frappe.toml:ro
- ./files/profiles.json:/home/socktop/.config/socktop/profiles.json:ro
# Mount SSH certificates (optional - comment out if not using)
- ./files/rpi-master.pem:/home/socktop/.config/socktop/certs/rpi-master.pem:ro
- ./files/rpi-worker-1.pem:/home/socktop/.config/socktop/certs/rpi-worker-1.pem:ro
- ./files/rpi-worker-2.pem:/home/socktop/.config/socktop/certs/rpi-worker-2.pem:ro
- ./files/rpi-worker-3.pem:/home/socktop/.config/socktop/certs/rpi-worker-3.pem:ro
# 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
# Disable socktop's local process-kill feature in every session
- SOCKTOP_NO_KILL=1
# 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