Skip to content
Snippets Groups Projects
Commit f62149d0 authored by Tim Repke's avatar Tim Repke
Browse files

pgvec to docker

parent 50047c3e
No related branches found
No related tags found
1 merge request!99Main
......@@ -14,7 +14,7 @@ pg_dump -d nacsos_core -h localhost -U root -W -p 5432 > dump.sql
```
## Installation
- Requires Python 3.10+, tested with Python 3.10.2
- Requires Python 3.12+, tested with Python 3.12.2
```bash
virtualenv venv
......
version: '3.8'
services:
db:
container_name: nacsos_postgres
#image: postgres:15.1-alpine
build:
context: .
dockerfile: pgDocker
image: pgvector/pgvector:pg15
restart: always
environment:
POSTGRES_USER: root
......@@ -16,6 +12,7 @@ services:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
......
#!/bin/sh
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<EOF
CREATE EXTENSION vector;
select * FROM vector;
EOF
\ No newline at end of file
FROM postgres:15.7-alpine
COPY load-extensions.sh /docker-entrypoint-initdb.d/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment