Skip to main content

Deploy Databases

QuickStack provides pre-configured templates for popular databases. Templates set up persistent storage, secure defaults, and environment variables automatically.

Available templates

  • PostgreSQL — advanced open-source relational database
  • MySQL — popular open-source relational database
  • MariaDB — enhanced, drop-in replacement for MySQL
  • MongoDB — document database for modern apps
  • Redis — in-memory key-value store for caching and messaging

Deployment steps

1. Create the database

  1. Open your project and click Create AppDatabase.
Create Database
  1. Select the database type.
Select Database Type
  1. Configure the instance:
    • App Name — a unique name (e.g. my-postgres-db)
    • Password — use the generate button for a strong random password
Configure Database settings
  1. Click Create. QuickStack provisions the volume, deploys the container, and configures internal networking.

Connecting to your database

Other apps in the same project connect via the service hostname:

  • Hostname: svc-<app-id> (find the exact value in the app's Credentials tab)
  • Port: standard port for the engine (PostgreSQL: 5432, MySQL/MariaDB: 3306, MongoDB: 27017)
  • Credentials: also shown in the Credentials tab
Database Credentials
Clipboard copy

Copying credential values requires your QuickStack instance to be served over HTTPS.

By default, databases are not exposed to the internet. If you need local access for development, you can assign a public domain in the Domains tab.

Security Warning

Exposing databases to the public internet is a security risk. Only do this for testing purposes.

Environment variables in templates

Database templates auto-configure environment variables (e.g. POSTGRES_PASSWORD, MYSQL_ROOT_PASSWORD). Do not modify these manually — it may break the pre-configured connection.