Member-only story
Deploy Any SSL Secured Website With Docker And Traefik
Learn how to use Docker and Traefik To deploy any SSL secured website — all files included!

What is Docker?
Docker is a platform that is used for developing, shipping, and running all kinds of applications. It enables the separation of applications from the infrastructure so that software can be delivered without concerns about the operating system of the host or the end-user.
To install Docker on your machine download the installation package from the official docker page here: https://docs.docker.com/get-docker/
To work with Docker you should get familiar with the following keywords/concepts: Container, Dockerfiles, Docker-Images, Docker-Compose
Container
A container describes a unit of software that merges code and every dependency to run an application. They provide a quick and safe way to run an application on several different devices. Also, it secures the application because of different isolation capabilities.
Docker Images
A Docker image is a read-only template that is used for creating the container to run the application within the Docker platform. It packages up applications and preconfigured server environments to create the container which will be deployed. On the officially DockerHub several already configured images are available to use. You can use the search function to find any image and deploy it on your system with:
docker run -it "NAME_OF_IMAGE_FROM_DOCKERHUB"
Dockerfiles
A Dockerfile is a plain text document that contains every command to set up an image. It contains the base image to use (operating system) and the additional software that should be installed on the resulting image.
Every time custom content is used for a Docker container a Dockerfile has to be created and filled with the missing information.
As an example, the following two snippets will demonstrate the usage of a Dockerfile. The first one will extend an NGINX image to serve a simple HTML file that is shown in the second snippet.