---
title: "Deploy PostgreSQL with PostGIS and H3"
description: "Postgres image supporting PostGIS and Uber's H3 extensions."
category: "Storage"
url: https://railway.com/deploy/0c4k7A
---

# Deploy PostgreSQL with PostGIS and H3

Postgres image supporting PostGIS and Uber's H3 extensions.

**[Deploy PostgreSQL with PostGIS and H3 on Railway](https://railway.com/template/0c4k7A)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/0c4k7A/manifest.json

- **Creator:** Chike Ozulumba's Projects
- **Category:** Storage
- **Total deploys:** 10

## Template content

### chikeozulumba/postgres-postgis-h3

- **Image:** chikeozulumba/postgres-postgis-h3

## Documentation

## PostGIS with H3 Extension Railway Template

This template provides a PostgreSQL database with PostGIS and Uber's H3 extension pre-installed, ready to deploy on Railway.

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/template/0c4k7A?referralCode=8bSENY)

## Features

- PostgreSQL 16
- PostGIS 3.4
- Uber's H3 postgres extension bindings for hexagonal hierarchical geospatial indexing [https://github.com/postgis/h3-pg](https://github.com/postgis/h3-pg)
- Pre-configured extensions and dependencies

## Prerequisites

- A Railway account
- Railway CLI (optional, for local development)

## Environment Variables

These are the required Postgres variables, which can be modified before deployment; they contain the default values.

```env
POSTGRES_DB=postgres-h3-db
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
```

## Local Development

Clone this repository:

```bash
git clone 
cd postgres-h3
```

## Running using Docker

Start the database using Docker Compose:

```bash
docker-compose up -d
```

Connect to the database:

```bash
psql -h localhost -p 54040 -U postgres -d postgres-h3-db
```

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

This project is licensed under the MIT License - see the LICENSE file for details.

Developed and maintained by [Chike Ozulumba](https://chikeozulumba.com). For issues or suggestions, please open an issue on the [GitHub repository](https://github.com/chikeozulumba/postgres-h3-railway).


## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Neo4j 2026.10 Community](https://railway.com/deploy/neo4j-202610-community) — Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

Open this page in a browser: https://railway.com/deploy/0c4k7A
