compose.hermes-import.yaml 633 B

1234567891011121314
  1. # Optional overlay: import an existing Hermes data directory once, read-only.
  2. # The embedded Hermes copies it into the yaoyao-data volume on first start and never writes to it.
  3. # Combine with compose.yaml (or a desktops compose file): docker compose -f compose.yaml -f compose.hermes-import.yaml up -d
  4. services:
  5. web:
  6. environment:
  7. YAOYAO_IMPORT_HERMES_HOME: /import/hermes
  8. volumes:
  9. - type: bind
  10. source: "${HERMES_YAOYAO_HERMES_DIR:?Set HERMES_YAOYAO_HERMES_DIR to the existing Hermes data directory}"
  11. target: /import/hermes
  12. read_only: true
  13. bind:
  14. create_host_path: false