Centos 7, Apache, PHP 7.3, and SSL
10K+
Dockerfile for a Container with Centos 7, Apache, PHP 7.3, and SSL for Web Development.
More details can be found here.
Create Docker Image.
docker build -t <image_name> .
Replace <image_name> with the name you want for the image.
Example.
docker build -t image_apache_ssl .
Create Docker Container.
docker run -tid -p 4000:80 -p 4001:443 --name=<container_name> -v /path_to/folder:/var/www/html <image_name>
Replace <container_name> with the name you want for the container, and <image_name> with the name of the image you specified on the Build command above.
Example.
docker run -tid -p 4000:80 -p 4001:443 --name=container_apache_ssl -v /path_to/folder:/var/www/html image_apache_ssl
Also change "/path_to/folder" with the actual location of your website's root folder on your local machine.
Open the https://localhost:4001 url on your browser.
Content type
Image
Digest
Size
317.8 MB
Last updated
over 5 years ago
docker pull davescripts/centos-7-apache-php-73-ssl