docker-compose.pgvecto-rs.yaml 668 B

1234567891011121314151617181920212223
  1. services:
  2. # The pgvecto—rs database.
  3. pgvecto-rs:
  4. image: tensorchord/pgvecto-rs:pg16-v0.2.0
  5. restart: always
  6. environment:
  7. PGUSER: postgres
  8. # The password for the default postgres user.
  9. POSTGRES_PASSWORD: difyai123456
  10. # The name of the default postgres database.
  11. POSTGRES_DB: dify
  12. # postgres data directory
  13. PGDATA: /var/lib/postgresql/data/pgdata
  14. volumes:
  15. - ./volumes/pgvectors/data:/var/lib/postgresql/data
  16. # uncomment to expose db(postgresql) port to host
  17. ports:
  18. - "5431:5432"
  19. healthcheck:
  20. test: [ "CMD", "pg_isready" ]
  21. interval: 1s
  22. timeout: 3s
  23. retries: 30