Skip to content

Commit

Permalink
feat: switch to postgres docker images with pgvector support (v4.0) (#…
Browse files Browse the repository at this point in the history
…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`
  • Loading branch information
vishnu-narayanan authored Jan 14, 2025
1 parent 03a938e commit 91dd92e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
restart: always

postgres:
image: postgres:12
image: pgvector/pgvector:pg16
restart: always
ports:
- '127.0.0.1:5432:5432'
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ services:
command: bin/vite dev

postgres:
image: postgres:12
image: pgvector/pgvector:pg16
restart: always
ports:
- '5432:5432'
Expand Down

0 comments on commit 91dd92e

Please sign in to comment.