Self-host MySQL with phpMyAdmin with Levelrail

A MySQL 8.4 server paired with the phpMyAdmin web console, already wired together. The database is not published on the host, so other services in this project reach it at db:3306. Sign in to phpMyAdmin as root with the generated root password.

  • Authorphpmyadmin
  • LicenceGPL-2.0-or-later
  • Memory768 MiB
  • Services2

How to self-host MySQL with phpMyAdmin

  1. Pull the images

    2 images are pulled on your server.

    Show images
    • mysql:8.4.13
    • phpmyadmin:5.2.3
  2. Create the app

    2 services start in a single Compose app, with 1 named volume mount for your data, on port 80.

  3. Fill in the secrets

    1 secret is generated and stored encrypted, 2 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

After the first start

  • Open the page and sign in as root with the generated root password from the app secrets.

MySQL with phpMyAdmin requirements

Memory
About 768 MiB
Architectures
amd64 unknown, arm64 unknown
Ports
80
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
GPL-2.0-or-later, copyleft license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then MySQL with phpMyAdmin. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the MySQL with phpMyAdmin docs page.

Deploy MySQL with phpMyAdmin your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy MySQL with phpMyAdmin from the CLI

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=app.example.com.

levelrail-cli templates install mysql-phpmyadmin --name my-mysql-phpmyadmin

Deploy MySQL with phpMyAdmin with the API

Create a token in the dashboard first. Name, env and domains are the request fields.

curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/mysql-phpmyadmin/install \
  -d '{
    "name": "my-mysql-phpmyadmin"
  }'

MySQL with phpMyAdmin configuration

MySQL with phpMyAdmin services

ServiceImagePortsVolumes
db mysql:8.4.13 none mysql_data -> /var/lib/mysql
phpmyadmin phpmyadmin:5.2.3 80 none

MySQL with phpMyAdmin environment variables

VariableServiceValue
MYSQL_ROOT_PASSWORD db Generated at deploy
PMA_HOST phpmyadmin Preset by the template
PMA_PORT phpmyadmin Preset by the template

Ports and volumes

Ports
80
Volumes
1 named mount: mysql_data -> /var/lib/mysql

MySQL with phpMyAdmin FAQ

How much memory does MySQL with phpMyAdmin need?

The catalog lists about 768 MiB of memory for MySQL with phpMyAdmin across its 2 services.

Does MySQL with phpMyAdmin run on arm64?

For MySQL with phpMyAdmin, arm64 support is not confirmed; amd64 is unknown.

What licence is MySQL with phpMyAdmin under?

MySQL with phpMyAdmin is licensed under GPL-2.0-or-later, which is copyleft, so changes you distribute must be shared under the same terms.

Does MySQL with phpMyAdmin need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does MySQL with phpMyAdmin bundle?

The template includes MySQL, running as its own service.

Which ports does MySQL with phpMyAdmin use?

MySQL with phpMyAdmin listens on port 80 inside the stack.

Where does MySQL with phpMyAdmin keep its data?

In a named volume: mysql_data mounted at /var/lib/mysql.

Can I deploy MySQL with phpMyAdmin on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for MySQL with phpMyAdmin, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image mysql:8.4.13, phpmyadmin:5.2.3 is what you deploy there.

levelrail-cli templates install mysql-phpmyadmin --name my-mysql-phpmyadmin