Deploy & Host GreptimeDB | Railway

Deploy and Host GreptimeDB on Railway

GreptimeDB is an open-source observability database that stores metrics, logs and traces in one engine and queries them with SQL and PromQL. It ingests Prometheus remote write, OpenTelemetry, InfluxDB line protocol, Loki and Elasticsearch formats, and speaks the MySQL and PostgreSQL wire protocols, so Grafana and existing drivers work.

About Hosting GreptimeDB

This template deploys GreptimeDB v1.2.1 in standalone mode with its data on a Railway volume. Authentication is enabled with a static admin user and a password generated at deploy time, and applies to HTTP, MySQL and Postgres. The HTTP API and web dashboard are on the public domain, and the PostgreSQL protocol is exposed through a Railway TCP proxy. All protocols also listen privately on IPv4 and IPv6. The health endpoint is open for Railway's health check. Storage grows with data; watch the volume on the Hobby plan. Back up the volume regularly.

Common Use Cases

Dependencies for GreptimeDB Hosting

Deployment Dependencies

Implementation Details

Service Image Networking Storage
greptimedb greptime/greptimedb:v1.2.1 public HTTP on 4000; TCP proxy to Postgres 4003; private 4000-4003 volume at /greptimedb_data
curl -u "admin:$GREPTIME_PASSWORD" "$GREPTIME_URL/v1/influxdb/write?db=public" --data-binary 'cpu,host=web-1 usage=0.73'
curl -u "admin:$GREPTIME_PASSWORD" -X POST "$GREPTIME_URL/v1/sql" --data-urlencode "sql=select * from cpu"

Prometheus remote write: https:///v1/prometheus/write with basic auth. Postgres: ${{greptimedb.GREPTIME_PG_PUBLIC}}.

Variable Default Purpose
GREPTIME_USERNAME / GREPTIME_PASSWORD admin / generated Static user for all protocols

Notes:

This is a community-maintained deployment package and does not imply affiliation with or endorsement by the GreptimeDB project or its maintainers.

Why Deploy GreptimeDB on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying GreptimeDB on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.