Files
Custom-dockers/README.md
T
2026-06-28 14:02:03 +03:00

32 lines
583 B
Markdown

# 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;
```