Last active
July 15, 2024 20:03
-
-
Save ogawa0071/7f919b71b3b4ceaa6f74ac98059d15cb to your computer and use it in GitHub Desktop.
WordPress and MySQL with Fly.io (ALWAYS FREE)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fly apps create ogawa0071-mysql | |
| fly deploy --config mysql.toml | |
| # fly apps destroy ogawa0071-mysql -y | |
| fly apps create ogawa0071-wordpress | |
| fly deploy --config wordpress.toml | |
| # fly apps destroy ogawa0071-wordpress -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app = "ogawa0071-mysql" | |
| primary_region = "nrt" | |
| swap_size_mb = 512 | |
| [build] | |
| image = "mariadb" | |
| [env] | |
| MYSQL_USER = "exampleuser" | |
| MYSQL_PASSWORD = "examplepass" | |
| MYSQL_DATABASE = "exampledb" | |
| MYSQL_RANDOM_ROOT_PASSWORD = "1" | |
| [mounts] | |
| source = "ogawa0071_mysql" | |
| destination = "/var/lib/mysql" | |
| initial_size = "1GB" | |
| [[vm]] | |
| size = "shared-cpu-1x" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app = "ogawa0071-wordpress" | |
| primary_region = "nrt" | |
| swap_size_mb = 512 | |
| [build] | |
| image = "wordpress" | |
| [env] | |
| WORDPRESS_DB_HOST = "ogawa0071-mysql.internal" | |
| WORDPRESS_DB_USER = "exampleuser" | |
| WORDPRESS_DB_PASSWORD = "examplepass" | |
| WORDPRESS_DB_NAME = "exampledb" | |
| [http_service] | |
| internal_port = 80 | |
| [mounts] | |
| source = "ogawa0071_wordpress" | |
| destination = "/var/www/html" | |
| initial_size = "1GB" | |
| [[vm]] | |
| size = "shared-cpu-1x" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment