From ecf6edaf85ec2710244d871f1195073fb97c6ff2 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 3 Feb 2026 13:00:51 -0600 Subject: [PATCH] update docker compose instructions --- config/config.exs | 2 +- lib/towerops_web/live/agent_live/index.html.heex | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/config.exs b/config/config.exs index 3827859c..248123ae 100644 --- a/config/config.exs +++ b/config/config.exs @@ -135,7 +135,7 @@ config :towerops, :scopes, # Agent Docker Image # Override this in runtime.exs or environment-specific config config :towerops, - agent_docker_image: "gmcintire/towerops-agent:main" + agent_docker_image: "ghcr.io/towerops-app/towerops-agent:latest" # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. diff --git a/lib/towerops_web/live/agent_live/index.html.heex b/lib/towerops_web/live/agent_live/index.html.heex index 9502b8ad..09c6eb56 100644 --- a/lib/towerops_web/live/agent_live/index.html.heex +++ b/lib/towerops_web/live/agent_live/index.html.heex @@ -454,7 +454,7 @@ Docker Compose Setup with Auto-Updates

- This configuration includes Watchtower for automatic agent updates. The agent will automatically update to the latest version every 15 minutes during development. + This configuration includes Watchtower for automatic agent updates. The agent will automatically update to the latest version every 12 hours.

services:
   towerops-agent:
@@ -464,8 +464,6 @@
     environment:
       - TOWEROPS_API_URL={url(@socket, ~p"/")}
       - TOWEROPS_AGENT_TOKEN={@new_token.token}
-    volumes:
-      - ./data:/data
     labels:
       - "com.centurylinklabs.watchtower.enable=true"
       - "com.centurylinklabs.watchtower.scope=towerops"
@@ -475,8 +473,8 @@
     container_name: towerops-watchtower
     restart: unless-stopped
     environment:
-      # Check for updates every 15 minutes (900 seconds)
-      - WATCHTOWER_POLL_INTERVAL=900
+      # Check for updates every 12 hours (43200 seconds)
+      - WATCHTOWER_POLL_INTERVAL=43200
       - WATCHTOWER_LABEL_ENABLE=true
       - WATCHTOWER_CLEANUP=true
       - WATCHTOWER_LOG_LEVEL=info
@@ -510,13 +508,15 @@
     container_name: towerops-watchtower
     restart: unless-stopped
     environment:
-      # Check for updates every day
-      - WATCHTOWER_POLL_INTERVAL=86400
+      # Check for updates every 12 hours
+      - WATCHTOWER_POLL_INTERVAL=43200
       - WATCHTOWER_LABEL_ENABLE=true
       - WATCHTOWER_CLEANUP=true
       - WATCHTOWER_LOG_LEVEL=info
       # Use latest Docker API version
       - DOCKER_API_VERSION=1.44
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock