Postgresql exteded with PostGIS, PGVector, etc.
The database is pre-seeded with the extensions.
Build:
docker build --tag uberpostgres:16 .
# Build
docker stop test-psql
docker rm --force test-psql
docker volume prune -f
docker build --tag uberpostgres:16 .
echo "Running container..."
docker run -d --name test-psql -p 5432:5432 -e POSTGRES_PASSWORD=pwd docker.io/library/uberpostgres:16
# Check the logs
docker logs -n 500 test-psql
# Check the container from outside
psql -h localhost -U postgres -W sampledb
select * from users;
# Check the container from inside
docker exec -it test-psql psql -h localhost -U postgres sampledb