Added postgress database

This commit is contained in:
2026-06-28 14:02:03 +03:00
parent d2113f8926
commit 26a6c32ae5
3 changed files with 56 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# Docker
Custom Docker images built on top of official base images.
## Postgres
A custom PostgreSQL 18.4 image with the [pgvector](https://github.com/pgvector/pgvector) extension (v0.8.2) for vector similarity search.
### Build
```sh
cd Postgress
./build.sh
```
`build.sh` builds the image, tags it as `custom-postgres`, and pushes it to a private registry at `10.0.2.119:5000`.
### Usage
```sh
docker run -d \
--name postgres \
-e POSTGRES_PASSWORD=secret \
-p 5432:5432 \
custom-postgres
```
Enable the extension in a database:
```sql
CREATE EXTENSION vector;
```