This is a Drupal Docker image which can run on both
- Azure Web App on Linux
- Drupal on Linux Web App With MySQL
- Your Docker engines's host.
You can find it in Docker hub here https://hub.docker.com/r/appsvcorg/drupal-nginx-fpm/
This docker image currently contains the following components:
- Drupal (8.5.1)
- nginx (1.13.8)
- PHP (7.0.27)
- Drush
- Composer (1.6.1)
- MariaDB ( 10.1.26/if using Local Database )
- Phpmyadmin ( 4.7.7/if using Local Database )
- Create a Web App for Containers, set Docker container as
appsvcorg/drupal-nginx-fpm:0.2
OR: Create a Drupal on Linux Web App With MySQL. - 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.
- Add one App Setting
WEBSITES_CONTAINER_START_TIME_LIMIT
= 600 - Browse your site and wait almost 10 mins, you will see install page of Drupal.
- Complete Drupal install.
- 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
- Must include App Setting
WEBSITES_ENABLE_APP_SERVICE_STORAGE
= true since we need files to be persisted. Do not use local storage for Drupal. You can use local storage for transient data or cached data say /tmp folder. - Pull and run this image need some time, You can include App Setting
WEBSITES_CONTAINER_START_TIME_LIMIT
to specify the time in seconds as need, Default is 240 and max is 600.
- 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>
- Fixed Restart block issue.
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.