Files
ergo-proxmox-scripts/webnut-docker/docker-compose.yml
T
ergosteurandClaude Opus 5 7c13144c5b Add webnut compose stack, reading credentials from .env
Web UI for the NUT UPS daemon.

UPS credentials come from .env alongside the compose file, which Compose
loads automatically; see .env.example. Required values use ${VAR:?} so a
missing .env fails loudly rather than starting the container with a blank
password.

Drop the obsolete top-level version key.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 15:45:12 +00:00

21 lines
544 B
YAML

services:
webnut:
image: teknologist/webnut
container_name: webnut
# Values come from .env alongside this file (see .env.example).
environment:
- UPS_HOST=${UPS_HOST:?set UPS_HOST in .env}
- UPS_PORT=${UPS_PORT:-3493}
- UPS_USER=${UPS_USER:?set UPS_USER in .env}
- UPS_PASSWORD=${UPS_PASSWORD:?set UPS_PASSWORD in .env}
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- webnut-net
ports:
- 6543:6543
networks:
webnut-net:
external: true