Skip to content

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

Notifications You must be signed in to change notification settings

garbinmarcelo/docker-nginx-https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published