Sign inSign up

mobilejazz/yii2-docker

By mobilejazz

Updated about 7 years ago

[DEPRECATED] Base image for Yii2 development

Image
5

10K+

mobilejazz/yii2-docker repository overview

Yii2 Docker

This is a basic docker image for developing Yii2 applications. It's features include:

  • PHP 5.6
  • Apache 2.x

The default apache config shipped with this image will use /var/www/html/frontend/web as it's document root.

Volumes included are:

  • /var/www/html

Things To Note

  • Everything is run under the www-data user with a home directory of /var/www and which has a uuid of 1000 to avoid permission conflicts with host file systems.

  • There is a utility script located at /exec-www.sh to help with executing commands as the www-data user from the /var/www/html directory.

  • By default the entrypoint for the image is /run.sh. If you are running Docker Native for Mac you will need to do the following in order to correctly use XDebug:

    • Follow the installation instructions here to setup a loopback alias
    • Override the entrypoint of the image in your docker-compose.yml file to use /run-mac.sh. This will swap the default xdebug.ini for a version configured to use the loopback alias.

Tag summary

Content type

Image

Digest

Size

265.4 MB

Last updated

over 9 years ago

docker pull mobilejazz/yii2-docker