add watchtower for easy updating

This commit is contained in:
bryce
2024-11-16 02:42:59 +13:00
parent 2a639ee9e1
commit dbf8ddc05e

View File

@@ -9,4 +9,13 @@ services:
ports: ports:
- "8080:8080" # Expose the application on port 8080 - "8080:8080" # Expose the application on port 8080
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" # Enables access to the host's MariaDB instance - "host.docker.internal:host-gateway" # Enables access to the host's MariaDB instance
watchtower:
image: v2tec/watchtower
container_name: watchtower
environment:
- WATCHTOWER_TRACE=true # Optional for debug output
volumes:
- /var/run/docker.sock:/var/run/docker.sock # This allows Watchtower to interact with Docker
restart: always # Ensures Watchtower restarts if it stops