Configure Apache Webserver on top of Docker Container with help of Ansible Playbook

What is Ansible?

What is Ansible Playbook?

What is Docker?

What is Container?

What is Apache(HTTPD) Web Server?

What is a Web Server?

Now, let's start the practical


  1. Configure Docker.
  2. Start and enable Docker services.
  3. Pull the httpd server image from the Docker Hub.
  4. Run the httpd container and expose it to the public.
  5. Copy the html code in the/var/www/html directory and start the webserver.
  1. IP Address
  2. Which Protocol to use for connection(like ssh)
  3. User Name
  4. Password

The Wrap-Up



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store



I am tech enthusiast fascinated towards technology and its various disciplines including Big Data, Hadoop, Web Development, Competative Programming,ML,etc.