Added RustDesk, changed Watchtower implementation
parent
6d8b53ed99
commit
4531510afd
@ -0,0 +1,36 @@
|
|||||||
|
# docker-compose.yml
|
||||||
|
# Docker Hub: https://hub.docker.com/r/rustdesk/rustdesk-server
|
||||||
|
# Documentation: https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/
|
||||||
|
|
||||||
|
nnetworks:
|
||||||
|
<NETWORK_NAME>:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
hbbs:
|
||||||
|
command: hbbs -r <RUSTDESK_URL_OR_IP>:21117 -k _
|
||||||
|
container_name: hbbs
|
||||||
|
depends_on:
|
||||||
|
- hbbr
|
||||||
|
image: rustdesk/rustdesk-server:<VERSION_TAG>
|
||||||
|
networks:
|
||||||
|
- <NETWORK_NAME>
|
||||||
|
ports:
|
||||||
|
- 21115:21115
|
||||||
|
- 21116:21116
|
||||||
|
- 21116:21116/udp
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./data:/root
|
||||||
|
|
||||||
|
hbbr:
|
||||||
|
command: hbbr -k _
|
||||||
|
container_name: hbbr
|
||||||
|
image: rustdesk/rustdesk-server:<VERSION_TAG>
|
||||||
|
networks:
|
||||||
|
- <NETWORK_NAME>
|
||||||
|
ports:
|
||||||
|
- 21117:21117
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./data:/root
|
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Add the below two lines (w/o comment) to crontab for docker user:
|
||||||
|
# TZ=UTC
|
||||||
|
# 0 12 22-28 * * /path/to/watchtowerOneTimeRun.sh
|
||||||
|
|
||||||
|
# Exit unless Saturday
|
||||||
|
if [[ $(date +%u) -ne 6 ]] ; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
readonly HOST_HOSTNAME="${HOSTNAME}"
|
||||||
|
|
||||||
|
# Docker run command
|
||||||
|
docker run --rm \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
-e WATCHTOWER_NOTIFICATIONS=shoutrrr \
|
||||||
|
-e WATCHTOWER_NOTIFICATION_URL=ntfy://docker:<NTFY_NOTIFICATION_URL> \
|
||||||
|
-e WATCHTOWER_NOTIFICATIONS_HOSTNAME="${HOST_HOSTNAME}" \
|
||||||
|
-e WATCHTOWER_NOTIFICATION_TEMPLATE="{{range .}}{{.Time.Format \"2006-02-01 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}" \
|
||||||
|
containrrr/watchtower:latest \
|
||||||
|
--no-startup-message \
|
||||||
|
--run-once \
|
||||||
|
--monitor-only
|
Loading…
Reference in New Issue