-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-example.yml
More file actions
28 lines (25 loc) · 999 Bytes
/
docker-compose-example.yml
File metadata and controls
28 lines (25 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
volumes:
data:
services:
upsnap:
image: ghcr.io/seriousm4x/upsnap:5 # images are also available on docker hub: seriousm4x/upsnap:5
network_mode: host
restart: unless-stopped
volumes:
- data:/app/pb_data
# I HIGHLY RECOMMEND LOOKING AT THE UPSNAP DOCO, THEN ADDING MY STUFF (BELOW) TO YOUR COMPOSE FILE
autowol:
image: ghcr.io/trentnbauer/upsnap-autowol:latest
restart: always
network_mode: host # Not running as host *MAY break "localhost" for the UpSnap URL variable - you may need to set the variable to the machines IP/DNS name
environment:
- UPSNAP_URL=${UPSNAPURL:-http://localhost:8090} # *
- UPSNAP_USERNAME=${USERNAME}
- UPSNAP_PASSWORD=${PASSWORD}
- UPSNAP_DELAY=${DELAY:-10} # Time in minutes to wait before sending WOL packets
healthcheck:
test: ["CMD-SHELL", "curl -f ${UPSNAP_URL:-http://localhost:8090} || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s