git clone https://github.com/n-traore/postgres-pgvector.git && \
cd postgres-pgvector
git update-index --assume-unchanged .env
docker build --tag=pgvec-rag:0.0.1 .
To modify the default versions of postgres and pgvector, use the build arguments. For example:
docker build --build-arg=PG_DOCKER_TAG=15.1 --build-arg=PGVECTOR_TAG=0.5.1 --tag=pgvec-rag:0.0.1 .
docker compose --env-file .env up -d