PHP (5.6/7.4) with local dev-only Apache, rewrite, gettext, allow htaccess, set up short URL
1.5K
php:5.6-apache, php:7.4-apachejbeat/apache-php:5.6.0,jbeat/apache-php:7.4.0, jbeat/apache-php:laravel-7.4.0Pull the Docker image:
docker pull jbeat/apache-php:tag
Run the Docker container:
docker run -d --name [container-name] -p 8080:80 -v $(pwd):/var/www/html jbeat/jbeat/apache-php:tag
Replace [container-name] with a desired name for your container and
8080 with the desired host port. The -v option mounts the current
directory ($(pwd)) to the container's /var/www/html directory,
allowing you to easily sync your local code with the container.
Options FollowSymLinks: Settings allow the server to follow symbolic links in the directory
Rewrite Module Enabled: The Apache configuration has been adjusted to include the enabled rewrite module.
Require all granted: Give all users full access to the contents of the directory for development environment
mpm_prefork Configured: The mpm_prefork module has been configured for optimal performance in the local development environment.
["apachectl", "-D", "FOREGROUND"] to start the Apache server.Content type
Image
Digest
sha256:9632752eb…
Size
186.1 MB
Last updated
about 2 years ago
docker pull jbeat/apache-php