From dbf8ddc05e580a18154c31f8e52cc06a19e81cc5 Mon Sep 17 00:00:00 2001 From: bryce Date: Sat, 16 Nov 2024 02:42:59 +1300 Subject: [PATCH] add watchtower for easy updating --- BrickLog-Server/docker-compose.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BrickLog-Server/docker-compose.yml b/BrickLog-Server/docker-compose.yml index 0f726eb..5fbcd2f 100644 --- a/BrickLog-Server/docker-compose.yml +++ b/BrickLog-Server/docker-compose.yml @@ -9,4 +9,13 @@ services: ports: - "8080:8080" # Expose the application on port 8080 extra_hosts: - - "host.docker.internal:host-gateway" # Enables access to the host's MariaDB instance \ No newline at end of file + - "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 \ No newline at end of file