Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
azuredeploy.json
azuredeploy.parameters.json
metadata.json

README.md

Create a WordPress site on a Container Instance

Create a WordPress site (and its MySQL database) on a Container Instance

This template creates a WordPress website and its MySQL database on a Container Instance. The WordPress site content and MySQL database are persistently stored on an Azure Storage File Share.

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 and 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.

Deployment steps

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.

Parameters:

  • siteName: The site name, the first segment of the WordPress site FQDN (e.g. mywordpress.westus.azurecontainer.io)
  • mysqlPassword: The password to access the MySQL database.

Output:

  • siteFQDN: The WordPress site FQDN (e.g. mywordpress.westus.azurecontainer.io)

Usage

Use browser to access the site FQDN from deployment output. WordPress will guide you through the rest of the setup.

Notes

Azure Container Instance is available in selected locations. Please use one of the available location for Azure Container Instance resource.

You can’t perform that action at this time.