Skip to content

🐞 Bug: Deployment Snippets for new environments are buggy #1245

@rikmueller

Description

@rikmueller

Bug Description

The deployment snippets use a wrong path for arcane-data
Because of this all settings of the agents get lost after docker compose down.

Steps To Reproduce

Add a new environment and press Generate Agent Configuration

Expected Behavior

Use path /app/data for arcane-data

docker run -d \
  --name arcane-agent \
  --restart unless-stopped \
  -e AGENT_MODE=true \
  -e AGENT_TOKEN=<YOUR_API_KEY> \
  -e MANAGER_API_URL=http://localhost:3552 \
  -p 3000:3000 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v arcane-data:/app/data \
  ghcr.io/getarcaneapp/arcane-headless:latest
services:
  arcane-agent:
    image: ghcr.io/getarcaneapp/arcane-headless:latest
    container_name: arcane-agent
    restart: unless-stopped
    environment:
      - AGENT_MODE=true
      - AGENT_TOKEN=<YOUR_API_KEY>
      - MANAGER_API_URL=http://localhost:3552
    ports:
      - "3000:3000"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - arcane-data:/app/data

volumes:
  arcane-data:

Actual Behavior

docker run -d \
  --name arcane-agent \
  --restart unless-stopped \
  -e AGENT_MODE=true \
  -e AGENT_TOKEN=<YOUR_API_KEY> \
  -e MANAGER_API_URL=http://localhost:3552 \
  -p 3000:3000 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v arcane-data:/data \
  ghcr.io/getarcaneapp/arcane-headless:latest
services:
  arcane-agent:
    image: ghcr.io/getarcaneapp/arcane-headless:latest
    container_name: arcane-agent
    restart: unless-stopped
    environment:
      - AGENT_MODE=true
      - AGENT_TOKEN=<YOUR_API_KEY>
      - MANAGER_API_URL=http://localhost:3552
    ports:
      - "3000:3000"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - arcane-data:/data

volumes:
  arcane-data:

Screenshots

No response

Arcane Version

1.11.0

Installation Method

Docker Compose (Recommended)

Environment Type

Both Local and Remote Agents

Database Type

SQLite (Default)

Operating System

Linux

Docker Version

29.1.3

Browser & Version

No response

Relevant Logs or Error Messages

Docker Compose Configuration

Environment Configuration (.env file)

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions