feat: IP-Watcher – automatischer Neustart bei IP-Wechsel

This commit is contained in:
2026-03-26 21:09:23 +01:00
parent 7539e18a46
commit 7bf847d31c
6 changed files with 99 additions and 0 deletions

View File

@@ -53,6 +53,22 @@ services:
tmserver_net:
ipv4_address: 172.20.60.11
ip-watcher:
image: alpine:3.21
container_name: tmserver-ip-watcher
restart: unless-stopped
depends_on:
- tmserver
command: ["/bin/sh", "/opt/WatchPublicIP.sh"]
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./assets/bin/WatchPublicIP.sh:/opt/WatchPublicIP.sh:ro
networks:
tmserver_net:
ipv4_address: 172.20.60.12
networks:
tmserver_net:
name: tmserver.dockernetwork.local