From 0f0b99552fa80eb2a1a4e97b471b34e5fbeff7e2 Mon Sep 17 00:00:00 2001 From: JamesTurland Date: Fri, 27 Mar 2026 11:21:32 +0000 Subject: [PATCH] wake-on-lan --- Wake-On-LAN/docker-compose.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Wake-On-LAN/docker-compose.yaml diff --git a/Wake-On-LAN/docker-compose.yaml b/Wake-On-LAN/docker-compose.yaml new file mode 100644 index 0000000..3a6d87f --- /dev/null +++ b/Wake-On-LAN/docker-compose.yaml @@ -0,0 +1,24 @@ +services: + upsnap: + container_name: upsnap + image: ghcr.io/seriousm4x/upsnap:5 # images are also available on docker hub: seriousm4x/upsnap:5 + network_mode: host + restart: unless-stopped + volumes: + - /home/james/docker/upsnap/data:/app/pb_data + # # To use a non-root user, create the mountpoint first (mkdir data) so that it has the right permission. + # user: 1000:1000 + environment: + - TZ=Europe/London # Set container timezone for cron schedules + # - UPSNAP_HTTP_LISTEN=127.0.0.1:8090 + - UPSNAP_INTERVAL=*/10 * * * * * # Sets the interval in which the devices are pinged + - UPSNAP_SCAN_RANGE=192.168.200.0/24 # Scan range is used for device discovery on local network + - UPSNAP_SCAN_TIMEOUT=500ms # Scan timeout is nmap's --host-timeout value to wait for devices (https://nmap.org/book/man-performance.html) + - UPSNAP_PING_PRIVILEGED=true # Set to false if non-root user and no NET_RAW capability *requires host setting net.ipv4.ping_group_range="0 2147483647" + - UPSNAP_WEBSITE_TITLE=UpSnap # Custom website title + # # dns is used for name resolution during network scan + dns: + - 192.168.200.11 + - 192.168.200.22 + # # or install custom packages for shutdown + # entrypoint: /bin/sh -c "apk update && apk add --no-cache && rm -rf /var/cache/apk/* && ./upsnap serve" \ No newline at end of file