Configure a Webserver on the top of docker using Ansible Playbook

step 1 configure docker

step 2 start and enable docker service

step 3 Pull the httpd server image from the Docker Hub

step 4 Run the docker container and expose it to the public

step 5 Copy the html code in /var/www/html directory and start the web server

Thank You!

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

S3 Select: Why Would You Use It ?

Why We Changed YugaByte DB Licensing to 100% Open Source

Alexa Skill with NodeJs, Part II: Understanding the flow

Migrating applications between Kubernetes clusters

Manage PostgreSQL JSON data with Go(golang)

Implementing Sagas using AWS Step Functions

Using different technologies to optimize linear complexity

Flask Web Development: Developing Web Applications with Python Ch4

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
Jatt singh

Jatt singh

More from Medium

How to fix Log4j security vulnerability on SAP Hybris Commerce?

How to delete Ansible host entries from hosts file using Ansible

CONNECT WSO2 API MANAGER AND MYSQL SERVER ON DOCKER.