Skip to content

How to setup with fully dockerized Hermes Agent install #5

Description

@X1pheR

You have provided a dockerfile and compose file for a docker container build. However, in Requirements I see that you need to link to the hermes runtime. But in my case the runtime is within the full official Hermes Agent container.

Is it still somehow possible to use this? My current Hermes Agent compose file looks like;

services:

  # Hermes Agent - Autonomous self improving AI agent
  hermes:
    image: nousresearch/hermes-agent:latest
    container_name: hermes
    hostname: hermes
    restart: unless-stopped
    group_add:
      - "999"
    command: gateway run
    env_file:
      - .env
    shm_size: "1gb"
    ports:
      - "8642:8642"   # OpenAI-compatible Hermes API
      - "9119:9119"   # Hermes dashboard
    environment:
      # Runtime identity
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      # Dashboard
      - HERMES_DASHBOARD=1
      - HERMES_DASHBOARD_TUI=1
      - HERMES_DASHBOARD_HOST=0.0.0.0
      - HERMES_DASHBOARD_PORT=9119
      - HERMES_DASHBOARD_INSECURE=1
      # API server
      # Required if Open WebUI, Caddy, or other clients should call Hermes.
      - API_SERVER_ENABLED=true
      - API_SERVER_HOST=0.0.0.0
      - API_SERVER_PORT=8642
      - API_SERVER_KEY=${API_SERVER_KEY}
      # Prefer explicit CORS if a browser frontend calls Hermes directly.
      # Most server-side frontends do not need CORS.
      # - API_SERVER_CORS_ORIGINS=https://hermes.hypershell.eu,https://ai.hypershell.eu
      - API_SERVER_CORS_ORIGINS=*
    volumes:
      # Hermes internal state: config, auth, sessions, memories, skills.
      - ${DATA}/hermes-agent:/opt/data
    deploy:
      resources:
        limits:
          memory: 4G
          cpus: "2.0"
    healthcheck:
      test: ['CMD-SHELL', 'curl -fsS http://localhost:8642/health && curl -fsS http://localhost:9119/api/status || exit 1']
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 120s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions