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 network_mode: service:db
db: db:
image: postgres:latest image: pgvector/pgvector:pg16
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- postgres-data:/var/lib/postgresql/data - postgres-data:/var/lib/postgresql/data

View File

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

View File

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

View File

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