Deploy MySQL
As an alternative data store to Postgres, you can deploy MySQL. Cycleops makes simple to deploy MySQL on your infrastructure in just a few steps:
- Follow the steps in "Deploy your first container"
- Edit the configuration of the service you created in the guide with:
- Image:
mysql - Tag:
8 - Env vars:
MYSQL_DATABASE=change-this-database-nameMYSQL_USER=change-this-userMYSQL_PASSWORD=change-this-passwordMYSQL_ROOT_PASSWORD=change-this-password - Volumes:
mysql_data:/var/lib/mysql/data
- Image:
- Deploy the setup you created to run the MySQL container on your host
- Connect to MySQL from the MySQL command line client
Now, you can verify that your MYSQL container is running and operating successfully:
docker run -it --network cycleops --rm mysql mysql -h change-this-database-name -u change-this-user -p