php:7.1-apache with rewrite, pdo-mysql and composer
Make a dockerfile in root of the project with FROM whiteaway/wagphp:dev
It is suggested to add configuration into the image:
COPY docker/php/php.ini /usr/local/etc/php/
COPY docker/apache/vhost.conf /etc/apache2/sites-available/000-default.conf
example vhost.conf
<VirtualHost *:80>
# ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/application/public
<Directory "/var/www/application/public">
AllowOverride all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
php.ini is very optional. The file could contain php configuration as needed. For example date.timezone = Europe/Copenhagen
Content type
Image
Digest
Size
141.2 MB
Last updated
over 8 years ago
docker pull whiteaway/wagphp