Commit Graph

2 Commits

Author SHA1 Message Date
059048b4ab fix(docker): resolve permission denied error for PG18+ volume mounts
Some checks failed
🚀 Docker Build and Push / build-and-push (15) (push) Failing after 3s
🚀 Docker Build and Push / build-and-push (16) (push) Failing after 2s
🚀 Docker Build and Push / build-and-push (17) (push) Failing after 3s
🚀 Docker Build and Push / build-and-push (18) (push) Failing after 3s
PostgreSQL 18+ Docker images changed the data directory structure to use
versioned subdirectories (e.g., /var/lib/postgresql/18/main) instead of
the traditional /var/lib/postgresql/data path.

Changes:
- Dockerfile: Add mkdir and chown to ensure /var/lib/postgresql has
  correct permissions for the postgres user before volume mount
- README.md: Update Quick Start with volume mount example
- README.md: Add 'Data Persistence' section explaining PG18+ requirements

This fixes the 'mkdir: cannot create directory: Permission denied' error
that occurred when mounting volumes at /var/lib/postgresql.

See: https://github.com/docker-library/postgres/pull/1259
2025-12-25 16:46:34 +01:00
4ea4132653 feat: PostgreSQL image with TimescaleDB, VectorChord, pgvector
All checks were successful
🚀 Docker Build and Push / build-and-push (15) (push) Successful in 5m44s
🚀 Docker Build and Push / build-and-push (16) (push) Successful in 5m33s
🚀 Docker Build and Push / build-and-push (18) (push) Successful in 6m7s
🚀 Docker Build and Push / build-and-push (17) (push) Successful in 7m54s
- Multi-stage Dockerfile for optimized image size (676MB vs 2GB)
- Support for PostgreSQL 15, 16, 17, 18
- TimescaleDB 2.24.0, VectorChord 1.0.0, pgvector 0.8.1
- Auto-creation of extensions on first startup
- CI/CD with tests for all versions
- OCI labels and healthcheck included
2025-12-19 12:18:10 +01:00