postgres.yml 456 B

12345678910111213141516
  1. postgres:
  2. image: gzdaniel/postgres-for-rag:pg18-age-pgvector
  3. ports:
  4. - "5432:5432"
  5. volumes:
  6. - postgres_data:/var/lib/postgresql
  7. healthcheck:
  8. test:
  9. - CMD-SHELL
  10. - 'PORT_HEX="$(printf ''%04X'' 5432)"; cat /proc/net/tcp /proc/net/tcp6 2>/dev/null | grep -q ":$${PORT_HEX} "'
  11. interval: 5s
  12. timeout: 3s
  13. retries: 20
  14. start_period: 10s
  15. stop_grace_period: 30s
  16. restart: unless-stopped