File size: 551 Bytes
e0c57a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Hermes 一键部署
# docker compose up -d

version: "3.8"

services:
  hermes:
    build: .
    container_name: hermes
    restart: unless-stopped
    volumes:
      - hermes_data:/root/.hermes
    environment:
      - HERMES_DATA_DIR=/root/.hermes/data
      - HF_ENDPOINT=${HF_ENDPOINT:-https://huggingface.co}
    ports:
      - "9876:9876"
    healthcheck:
      test: ["CMD", "python", "-c", "from hermes_core.embedder import Embedder; Embedder.is_available()"]
      interval: 60s
      timeout: 10s
      retries: 3

volumes:
  hermes_data: