Skip to content

Commit

Permalink
chore: add Dockerfile for postgres+pgvector (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuffin authored Oct 18, 2024
1 parent 70f2292 commit 4d5c8a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docker/Dockerfile.postgres+pgvector
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM postgres:17.0-bookworm

# Install pgvector
RUN apt-get update && apt-get install -y postgresql-17-pgvector
3 changes: 2 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ services:

postgres:
container_name: llmsearch-postgres
image: postgres:17.0-bookworm
# image: postgres:17.0-bookworm
image: postgres-pgvector:latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
Expand Down
3 changes: 3 additions & 0 deletions scripts/build-postgres-pgvector.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker build -t postgres-pgvector:latest -f docker/Dockerfile.postgres+pgvector .

0 comments on commit 4d5c8a6

Please sign in to comment.