From 2aca9dc933f6c0b97dcc8af12b20a73981b22b2b Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Wed, 14 Jan 2026 09:33:12 -0600 Subject: [PATCH] Add data directory setup instructions to agent modal The Docker agent runs as non-root user (UID 1000) for security. When mounting host directories, users must create the data directory with proper permissions before starting the container. Added clear instructions to: 1. Create the data directory: mkdir -p data 2. Set proper ownership: chown -R 1000:1000 data 3. Then use the Docker Compose configuration This fixes the 'unable to open database file' error when starting the agent. --- lib/towerops_web/live/agent_live/index.html.heex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/towerops_web/live/agent_live/index.html.heex b/lib/towerops_web/live/agent_live/index.html.heex index 10425514..5371a318 100644 --- a/lib/towerops_web/live/agent_live/index.html.heex +++ b/lib/towerops_web/live/agent_live/index.html.heex @@ -213,8 +213,15 @@

- Docker Compose Example + Docker Compose Setup

+
+

First, create the data directory with proper permissions:

+
mkdir -p data && chown -R 1000:1000 data
+

+ Then create docker-compose.yml: +

+
services:
   towerops-agent:
     image: {@agent_image}