Azure-App-Service / wordpress-alpine-php

14 stars 22 forks source link

Wordpress-alpine-php Docker Image

This is a WordPress Docker image which can run on both Azure Web App on Linux and your Docker engines's host.

Components

This docker image currently contains the following components:

  1. WordPress (4.9.1)
  2. Alpine
  3. PHP
  4. Phpmyadmin ( if using Local Database )

How to configure to use Azure Database for MySQL with web app

  1. Create a Web App for Containers
  2. Update App Setting WEBSITES_ENABLE_APP_SERVICE_STORAGE = true
  3. Browse your site
  4. Complete WordPress install and Enter the Credentials for Azure database for MySQL

How to configure to use Local Database with web app

  1. Create a Web App for Containers
  2. Update App Setting WEBSITES_ENABLE_APP_SERVICE_STORAGE = true
  3. Add new App Settings
Name Default Value
DATABASE_TYPE local
DATABASE_USERNAME wordpress
DATABASE_PASSWORD some-string

Note: We create a database "azurelocaldb" when using local mysql . Hence use this name when setting up the app

  1. Browse your site
  2. Complete WordPress install

Note: Do not use the app setting DATABASE_TYPE=local if using Azure database for MySQL

Limitations