compose.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:-8800}:8800"
  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: 8800
  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 8800 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_HOME: /var/lib/hermes-yaoyao
  30. HERMES_YAOYAO_APNS_KEY_FILE: "${HERMES_YAOYAO_APNS_KEY_FILE:-}"
  31. HERMES_YAOYAO_APNS_KEY_ID: "${HERMES_YAOYAO_APNS_KEY_ID:-}"
  32. HERMES_YAOYAO_APNS_TEAM_ID: "${HERMES_YAOYAO_APNS_TEAM_ID:-}"
  33. HERMES_YAOYAO_APNS_TOPIC: "${HERMES_YAOYAO_APNS_TOPIC:-}"
  34. volumes:
  35. - yaoyao-data:/var/lib/hermes-yaoyao
  36. tmpfs:
  37. - /tmp:mode=1777
  38. volumes:
  39. yaoyao-data: