Skip to main content
Database

Deploy MySQL on Your VPS

Deploy MySQL on your VPS in one click. The world's most popular open source relational database, with persistent volumes and managed credentials.

MySQL is the most widely deployed open source relational database, powering everything from small WordPress blogs to large-scale SaaS platforms. Vessl ships a production-ready MySQL container with sane defaults: persistent storage on a Docker volume, automatic root password generation, and an exposed internal port other Vessl apps can connect to over the project network.

You don't manage the container manually — Vessl handles upgrades, restarts, and zero-downtime redeploys. Pair it with a Vessl application (Laravel, Rails, Django, Node) and the database connection string is wired in via project-scoped environment variables.

What's included

  • Persistent volume so data survives container restarts and redeploys
  • Auto-generated root password injected as an environment variable
  • Internal-only network exposure by default — no public DB port
  • One-click backups (manual snapshot or scheduled) on paid plans
  • Compatible with any MySQL 8 client, ORM, or connector

Common use cases

  • Self-hosted application database for Laravel / Rails / Django apps
  • Replacement for managed RDS / Cloud SQL where you want full control
  • Development and staging databases that mirror production
Docker image
mysql:8
Services
1 container
Pricing
Free — billed per VPS, not per template

Frequently asked questions

Which MySQL version does this template deploy?

The template uses the official MySQL 8 image. You can pin a specific minor version through the deploy form before the first launch.

How do I connect my application to MySQL?

Both services join the same project network. Vessl injects DB_HOST, DB_PORT, DB_USERNAME, and DB_PASSWORD into the application container — your framework picks them up automatically.

Is data backed up automatically?

Persistent volumes are durable across container restarts and redeploys. For point-in-time backups, run mysqldump on a schedule (paid plans expose this through the dashboard).

Ready to ship?

Deploy MySQL in under a minute.

Connect your VPS, pick this template, fill in any required fields. Vessl handles the container, SSL, and persistent storage.

Start for Free

No credit card · BYOS · IDR billing