Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.24 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.24 KB

Docker/Docker Compose/Dockerize using Nginx + HTTPS on localhost / Windows

Example

Currently working in browser:
  • Google Chrome
Tools:

Run: $ docker-compose up -d --build

The generated certificate will be located in the ./docker/certs folder.

  • Run the file with extension .crt | Ex.: examplehttps.test-selfsigned.crt
  • Click the Install Certificate button;
  • Repository Location: Local Machine;
  • Put all certificates in the following repository: Trusted Root Certification Authorities;

So now you can locally access your project with ssl enabled: https://examplehttps.test/

To change the domain and generate a new certificate, change in docker-compose.yml

environment:
   - URL_DOMAIN=yourdomain.test

do the build ($ docker-compose up -d --build) again, install the certificate and that's all...

Note: This is an environment for local studies and development, use in production is not recommended. Improvements are very welcome!