? This README was written by GPT-4. ?
This project focuses on creating a Docker image that combines the functionalities of PostGIS and pgvector, offering an easy-to-use solution for working with spatial data and vector similarity in PostgreSQL. It is designed to be as simple as integrating any other PostgreSQL Docker image into your workflow.
PostGIS: An extension to PostgreSQL that allows it to store spatial data and perform spatial operations.pgvector: An extension for PostgreSQL designed for efficient similarity search in high dimensional vector spaces.The Dockerfile starts with the postgis/postgis:13-3.4 image and installs essential packages including build tools, PostgreSQL server development tools, and git. It then clones and installs pgvector. The Dockerfile is optimized to reduce the layer size by cleaning up after installations.
docker-compose.yml sets up two services:
postgis_pgvector: Builds the Docker image from the provided Dockerfile and sets up a volume for data persistence. It also configures the environment for PostgreSQL.pgadmin: Uses the dpage/pgadmin4:7.8 image for database management through a web interface. It also sets up a volume for pgAdmin data.docker compose up to build the image and run the containers.docker-compose.yml file but can be overridden with environment variables.docker-compose.yml.POSTGRES_PASSWORD, POSTGRES_DB, PGADMIN_DEFAULT_EMAIL, and PGADMIN_DEFAULT_PASSWORD in your environment or directly in the docker-compose.yml.docker-compose.yml as per your requirements.docker-compose.yml as needed.Your contributions are welcome! To contribute, please follow the standard fork and pull request workflow.
This project is licensed under the MIT License.