Deploy A Static Website with Docker The static websites are the HTML pages, directly severed by any web servers. It may also include some other static assets like css, js and images. In this tutorial you will learn, how to deploy a static website on Docker container. 1. Create A Static Website We assume you already have a static site on your system. For this tutorial, I have downloaded a static website from here. After making some changes, placed all files in a directory on Docker server. 2. Create Dockerfile…
Read MoreTag: Apache
Docker PHP Example
Run PHP Web Application with Docker You can run any PHP application on using web server or command line using Docker containers. This tutorial will help you to run a PHP script over command line with a Docker container. Also, you will find the instructions to run a PHP script over Apache/Nginx web server with Docker. Docker PHP Example with Apache Create PHP Script – First, create a sample PHP script to run on web server under the Docker container. Edit index.php in your favorite text editor. nano index.php Add…
Read More