CATEGORY

Developer Tools

  • December 7, 2020
  • July 29, 2021

The Docker is useful to test and to debug the code to connect with HTTP/HTTPS

If you implement the code to communicate with HTTP or HTTPS, you may want to test it with fixed response. The docker is useful to do it. It can create and run the container which contains the Nginx, the web server. You can test your application with this container. How to create the container Create the docker image To create the docker image, create the file with name ‘Dockerfile’ and write below. FROM nginx:1.17 Create the Composer define file Create the docker-compose.yml file and write code below. version: "3" services: nginx: build: . ports: - 8080:80 volumes: - ./content_home:/usr/share/nginx/html Create […]