version: "3.8"

services:
  hermes-webui:
    build: .
    ports:
      - "127.0.0.1:8787:8787"
    volumes:
      # Persist session data, settings, and projects across restarts
      - hermes-data:/data
      # Mount hermes home for agent features and profile management
      - ${HERMES_HOME:-${HOME}/.hermes}:/root/.hermes
    environment:
      - HERMES_WEBUI_HOST=0.0.0.0
      - HERMES_WEBUI_PORT=8787
      - HERMES_WEBUI_STATE_DIR=/data
      # Optional: set a password for remote access
      # - HERMES_WEBUI_PASSWORD=your-secret-password
    restart: unless-stopped

volumes:
  hermes-data:
