This docker image contains nginx, php-fpm , drush and composer. You can find it in Docker hub here https://hub.docker.com/r/appsvcorg/nginx-fpm/ It can run on both Azure Web App on Linux and your Docker engines's host.
This repository contains docker images that are used for App Service Linux. Some images may be maintained by our team and some maintained by contirbutors.
This docker image currently contains the following components:
- Nginx (1.13.8)
- PHP (7.0.27)
- Composer (1.6.1)
- Drush
- MariaDB ( 10.1.26/if using Local Database )
- Phpmyadmin ( 4.7.7/if using Local Database )
- Create a Web App for Containers
- Update App Setting
WEBSITES_ENABLE_APP_SERVICE_STORAGE
= true
If the
WEBSITES_ENABLE_APP_SERVICE_STORAGE
setting is false, the /home/ directory will not be shared across scale instances, and files that are written there will not be persisted across restarts.
- Browse http://[website]/hostingstart.html
- Create a Web App for Containers
- Update App Setting
WEBSITES_ENABLE_APP_SERVICE_STORAGE
= true - Add new App Settings
Name | Default Value |
---|---|
DATABASE_TYPE | local |
DATABASE_USERNAME | some-string |
DATABASE_PASSWORD | some-string |
**Note: We create a database "azurelocaldb" when using local mysql . Hence use this name when setting up the app ** |
- Browse http://[website]/phpmyadmin
- Some unexpected issues may happen after you scale out your site to multiple instances, if you deploy a site on Azure with this docker image and use the MariaDB built in this docker image as the database.
- The phpMyAdmin built in this docker image is available only when you use the MariaDB built in this docker image as the database.
- Must include App Setting
WEBSITES_ENABLE_APP_SERVICE_STORAGE
= true since we need files to be persisted.
- Version 0.2
- Supports local MySQL.
- Create default database - azurelocaldb.(You need set DATABASE_TYPE to "local")
- Considering security, please set database authentication info on "App settings" when enable "local" mode.
Note: the credentials below is also used by phpMyAdmin.- DATABASE_USERNAME | <your phpMyAdmin user>
- DATABASE_PASSWORD | <your phpMyAdmin password>
If you have feedback please create an issue but do not send Pull requests to these images since any changes to the images needs to tested before it is pushed to production.