neo4j.yml 430 B

1234567891011121314151617
  1. neo4j:
  2. image: neo4j:5-community
  3. ports:
  4. - "7474:7474"
  5. - "7687:7687"
  6. volumes:
  7. - neo4j_data:/data
  8. healthcheck:
  9. test:
  10. - CMD-SHELL
  11. - 'PORT_HEX="$(printf ''%04X'' 7687)"; cat /proc/net/tcp /proc/net/tcp6 2>/dev/null | grep -q ":$${PORT_HEX} "'
  12. interval: 5s
  13. timeout: 3s
  14. retries: 20
  15. start_period: 10s
  16. stop_grace_period: 30s
  17. restart: unless-stopped