- DockerHub : arcadev/apache2-php7.2
-
Ubuntu 18.04
-
Apache 2
-
PHP 7.2
To create the base image arcadev/apache2-php7.2, execute the following command:
docker build -t arcadev/apache2-php7.2 .
Running your Apache and PHP docker image
Start your image binding the external ports 80 in all interfaces to your container:
docker run -d -p 80:80 arcadev/apache2-php7.2
In the docker-compose.yml file replace the volume line "/var/www" with your working directory and execute the following command:
docker-compose up