Adios Docs

Deploying MySQL

Adios provides official templates for running MySQL databases.

Configuration

Create an adios.yaml file in the root of your project:

name: my-mysql-db
template: mysql:8
env:
  MYSQL_ROOT_PASSWORD: "secret://MYSQL_ROOT_PASSWORD"
  MYSQL_DATABASE: mydb
  MYSQL_USER: myuser
  MYSQL_PASSWORD: "secret://MYSQL_PASSWORD"

Deploy

Before deploying, make sure to set your secrets using the CLI:

$ adios secret set MYSQL_ROOT_PASSWORD my_secure_password
$ adios secret set MYSQL_PASSWORD my_other_password

Then you can run the deployment command:

$ adios up

Your database will automatically be provisioned with a persistent volume so data is retained across restarts.