Docker – pgvector – Run PostgreSQL with pgvector in Docker Compose
The official postgres Docker image does not include pgvector. To run PostgreSQL with pgvector locally, use the pgvector/pgvector image: it is the same postgres image, with the extension already installed. Here is a minimal pgvector docker compose file, tested with PostgreSQL 18. The pgvector docker compose file services: db: image: pgvector/pgvector:pg18 environment: POSTGRES_USER: app POSTGRES_PASSWORD: … Read more