This repo contains the resources to deploy a MySQL InnoDB Cluster to Railway.
To deploy your own MySQL cluster in Railway, just click the button below!
The MySQL nodes deployed in the cluster are built from the official MySQL image in Docker.
The only customization to the image, is the inclusion of a my.cnf file which configures the nodes as necessary to create the cluster.
The init service is used to execute the required commands against MySQL to create the cluster and join the members.
Upon completion, it deletes itself via the Railway public API.
Included in this repo are example apps to demonstrate how to connect a client to the cluster via the MySQL router.
There are many ways to configure a MySQL Cluster. You should become familiar with the MySQL resources:
Pull requests are welcome. If you have any suggestions for how to improve this implementation of a MySQL InnoDB Cluster, please feel free to make the changes in a PR.