Move Hermes config into volume, add pre-deploy sync check

Config.yaml was bind-mounted, blocking runtime writes (/sethome).
Move it into the Docker volume via docker cp instead. Add
hermes-sync Makefile target that diffs remote config against local
before deploying, to catch runtime changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Louis Simoneau
2026-04-10 17:06:19 +10:00
parent 66b0588f52
commit 6a54777c5c
4 changed files with 29 additions and 7 deletions

View File

@@ -344,13 +344,17 @@
mode: '0640'
tags: hermes
- name: Copy Hermes config.yaml
- name: Stage Hermes config.yaml
copy:
src: ../hermes/config.yaml
dest: /opt/hermes/config.yaml
owner: root
group: root
mode: '0640'
tags: hermes
- name: Copy config.yaml into Hermes volume
command: docker cp /opt/hermes/config.yaml hermes:/opt/data/config.yaml
notify: Restart Hermes
tags: hermes

View File

@@ -1,10 +1,9 @@
model:
provider: openrouter
default: openrouter/auto
memory:
memory_enabled: true
user_profile_enabled: true
agent:
max_turns: 70
max_turns: 70
TELEGRAM_HOME_CHANNEL: '8455090116'

View File

@@ -13,7 +13,6 @@ services:
- monotrope
volumes:
- hermes_data:/opt/data
- ./config.yaml:/opt/data/config.yaml:ro
- ./plugins:/opt/data/plugins:ro
environment:
OPENROUTER_API_KEY: "${OPENROUTER_API_KEY}"