feat: switch to postgres docker images with pgvector support (v4.0) (#10658)

Starting v4.0, pgvector support is mandatory. This PR adds pgvector
support for new docker installations.

- Switch to postgres images with pgvector support
- Change the default postgres version from `12` to `16`
This commit is contained in:
Vishnu Narayanan
2025-01-14 19:45:42 +05:30
committed by GitHub
parent 03a938eb60
commit 91dd92e318
4 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ services:
network_mode: service:db
db:
image: postgres:latest
image: pgvector/pgvector:pg16
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data

View File

@@ -35,7 +35,7 @@ services:
restart: always
postgres:
image: postgres:12
image: pgvector/pgvector:pg16
restart: always
ports:
- '127.0.0.1:5432:5432'

View File

@@ -39,7 +39,7 @@ services:
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
postgres:
image: postgres:12
image: pgvector/pgvector:pg16
restart: always
ports:
- '5432:5432'

View File

@@ -83,7 +83,7 @@ services:
command: bin/vite dev
postgres:
image: postgres:12
image: pgvector/pgvector:pg16
restart: always
ports:
- '5432:5432'