PostgreSQL + PostGIS + TimescaleDB ready-to-use docker image πππ
Based on Alpine Linux.
Docker image with:
Current versions of components:
- PostgreSQL: 18.6 (Source docker image)
- PostGIS: 3.7.0 (Release archive)
- TimescaleDB: 2.31.0 (Release archive)
How to build:
$ docker build -t binakot/postgresql-postgis-timescaledb .How to run:
$ docker run -d --name postgres -e POSTGRES_PASSWORD=postgres binakot/postgresql-postgis-timescaledbAlso you can run app stack with built docker image and pgAdmin4: docker-compose up.
PostgreSQL is running on port 5432.
PgAdmin will be available on localhost:5433 with credentials: admin@admin.com / admin.
Note: PostgreSQL 18+ stores data under
/var/lib/postgresql(major-version subdirectory). The compose volume mounts that path.
To publish a multi-arch image (amd64 + arm64) to Docker Hub:
$ docker buildx build \
--platform linux/amd64,linux/arm64 \
-t binakot/postgresql-postgis-timescaledb:latest \
--push \
.Check the image architecture:
$ docker image inspect binakot/postgresql-postgis-timescaledb:arm64 \
--format '{{.Architecture}}'