compose.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: hermes-yaoyao
  2. services:
  3. web:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. image: hermes-yaoyao:local
  8. restart: unless-stopped
  9. init: true
  10. read_only: true
  11. security_opt:
  12. - no-new-privileges:true
  13. cap_drop:
  14. - ALL
  15. ports:
  16. - "${HERMES_YAOYAO_BIND_ADDRESS:-127.0.0.1}:${HERMES_YAOYAO_PUBLISHED_PORT:-15300}:15300"
  17. extra_hosts:
  18. - "host.docker.internal:host-gateway"
  19. environment:
  20. NODE_ENV: production
  21. HERMES_YAOYAO_HOST: 0.0.0.0
  22. HERMES_YAOYAO_PORT: 15300
  23. HERMES_YAOYAO_UPSTREAM: "${HERMES_YAOYAO_UPSTREAM:-http://host.docker.internal:9119}"
  24. # Permit localhost access when the published host port differs from the
  25. # container's fixed 15300 port; configured public host names remain opt-in.
  26. HERMES_YAOYAO_ALLOWED_HOSTS: "localhost,127.0.0.1,${HERMES_YAOYAO_ALLOWED_HOSTS:-}"
  27. HERMES_YAOYAO_ALLOW_INSECURE_LAN: "1"
  28. HERMES_YAOYAO_SUPERVISE_DASHBOARD: "0"
  29. HERMES_YAOYAO_CHAT_CACHE_MODE: "${HERMES_YAOYAO_CHAT_CACHE_MODE:-prefer-local}"
  30. HERMES_YAOYAO_HOME: /var/lib/hermes-yaoyao
  31. HERMES_YAOYAO_APNS_KEY_FILE: "${HERMES_YAOYAO_APNS_KEY_FILE:-}"
  32. HERMES_YAOYAO_APNS_KEY_ID: "${HERMES_YAOYAO_APNS_KEY_ID:-}"
  33. HERMES_YAOYAO_APNS_TEAM_ID: "${HERMES_YAOYAO_APNS_TEAM_ID:-}"
  34. HERMES_YAOYAO_APNS_TOPIC: "${HERMES_YAOYAO_APNS_TOPIC:-}"
  35. volumes:
  36. - yaoyao-data:/var/lib/hermes-yaoyao
  37. tmpfs:
  38. - /tmp:mode=1777
  39. volumes:
  40. yaoyao-data: