How to run PostGreSQL with pgVector extension in EC2 ?
Step 1. Launch an AWS EC2 instance.
Step 2. Connect to your ec2 instance via ssh keys.
Step 3. Install docker and docker-compose in your ec2 instance.
Step 4: Use the following docker-compose.yaml. This by default installs the PostGreSql with pgVector extension preloaded.
|
version: '3.8' services: db: container_name: pgVectorDB image: ankane/pgvector:latest restart: always environment: POSTGRES_DB: generative-app-db POSTGRES_USER: pguser POSTGRES_PASSWORD: secret_password ports: - "5432:5432" volumes: ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access