Create an Azure Container Instance with VNet
This template creates a WordPress website and its MySQL database on container instance in a virtual network. The WordPress site content and MySQL database are persistently stored on an Azure Storage File Share. Also creates an Application gateway with WordPress container instance as Backend server. The application gateway exposes public network access to WordPress site in virtual network.
Tags: Azure Container Instance, WordPress
Solution overview and deployed resources
The following resources are deployed as part of the solution
- Azure Container Instance: Azure Container Instance to host the WordPress site.
- Azure Container Instance: Azure Container Instance to host the MySQL database.
- Azure Container Instance: A run-once Azure Container Instance, where the az-cli is executed to create the file shares
- Storage Account: Storage account for the file shares to store the WordPress site content and MySQL database.
- File share: Azure File shares to store WordPress site content and MySQL database.
- Application gateway: Application gateway for WordPress site. It exposes public network access to WordPress site in VNet.
- Virtual network: Virtual network for WordPress site, MySQL database, Application gateway.
You can click the "deploy to Azure" button at the beginning of this document or follow the instructions for command line deployment using the scripts in the root of this repo.
- mysqlPassword: The password to access the MySQL database.
Use browser to access the SiteFQDN from output. WordPress will guide you through the rest of the setup.
Azure Container Instance is available in selected locations. Please use one of the available location for Azure Container Instance resource.