Documentation menu

Platform

Managed Databases

Run PostgreSQL, MySQL, MongoDB, Redis, MinIO and RabbitMQ next to your app, connect with reference variables, expose them over TCP and rotate passwords.

Parslinks runs common databases and infrastructure as managed services inside your project. Each one runs on a persistent volume, gets a generated password and publishes ready-made connection variables that other services reference.

Available engines

EngineDefault image tagPortData pathMain connection variable
PostgreSQL16-alpine5432/var/lib/postgresql/dataDATABASE_URL
MySQL83306/var/lib/mysqlDATABASE_URL
MongoDB727017/data/dbMONGO_URL / DATABASE_URL
Redis7-alpine6379/dataREDIS_URL
MinIO (S3-compatible storage)latest9000/dataS3_ENDPOINT + keys
RabbitMQ3-management5672/var/lib/rabbitmqAMQP_URL

Create a database

  1. In your project, click New service → Database and choose the engine.
  2. Parslinks creates the service with a volume at the engine's data path and generates a strong password.
  3. The database starts in the current environment and is reachable privately at {service}.{environment}.internal.

Managed databases run as a single replica on their volume, so their data survives deploys and restarts.

Connect your app

Do not copy credentials into your app. Reference the database's outputs instead, so passwords and hosts stay in one place:

# app service variables
DATABASE_URL=${{postgres.DATABASE_URL}}
REDIS_URL=${{redis.REDIS_URL}}
bash3 lines

postgres and redis are the service names (slugs) in your project. Redeploy the app so the resolved values become part of its snapshot (Variables & Configuration).

Variables each engine publishes

EngineVariables
PostgreSQLDATABASE_URL, DATABASE_PUBLIC_URL, PGHOST, PGPORT, PGUSER, PGPASSWORD, PGDATABASE, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB
MySQLDATABASE_URL, DATABASE_PUBLIC_URL, MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE
MongoDBMONGO_URL, DATABASE_URL, MONGO_PUBLIC_URL, DATABASE_PUBLIC_URL, MONGO_HOST, MONGO_PORT, MONGO_USER, MONGO_PASSWORD
RedisREDIS_URL, REDIS_PUBLIC_URL, REDISHOST, REDISPORT, REDISUSER, REDISPASSWORD
MinIOS3_ENDPOINT, S3_PUBLIC_ENDPOINT, S3_HOST, S3_PORT, S3_ACCESS_KEY, S3_SECRET_KEY
RabbitMQAMQP_URL, AMQP_PUBLIC_URL, RABBITMQ_HOST, RABBITMQ_PORT, RABBITMQ_USER, RABBITMQ_PASSWORD

The plain variables (DATABASE_URL, REDIS_URL, …) use the private network. The …_PUBLIC_URL variables use the public TCP proxy and only work once public TCP is enabled.

Connect from your computer

To use a GUI client, a migration tool or psql from outside Parslinks:

  1. Enable Public TCP on the database (Networking).
  2. Use the …_PUBLIC_URL variable, or the host and port shown in the dashboard.
psql "$DATABASE_PUBLIC_URL"
bash1 line

Turn public TCP off again when you no longer need outside access. Apps inside the project should always use the private URL.

Rotate credentials

PostgreSQL and Redis support in-place password rotation: Parslinks changes the password inside the running engine (ALTER USER for PostgreSQL, CONFIG SET requirepass for Redis) and updates the published variables. Redeploy the services that reference them so they pick up the new value.

Backups

Take snapshots of the database's volume before risky changes; for engines that support it, use the dump-based backup (pg_dump, Redis SAVE, mongodump) for an application-consistent copy. See Volumes & Backups.

Databases in preview environments

When a pull-request environment is created, managed databases reference the existing instance by default instead of starting a new one. Previews therefore share the source environment's data. Deploy the database in the preview environment when previews need isolated data.

Health and metrics

Engines are health-checked on their own port from outside the container (for example pg_isready for PostgreSQL). CPU, memory and volume usage appear in Observability; PostgreSQL and Redis also export engine metrics.

Good practices

  • Keep one database per concern, and reference it by name from each app that needs it.
  • Run schema migrations as part of your app's start or release process, not by hand on production.
  • Never change the engine's port variables in the database service itself; consumers use the published variables.
  • First boot of MySQL can take a few minutes while it initializes its data files. Let it finish before redeploying.