A Docker container for https enabled nginx reverse proxy.
cd /path/to/directory
git clone https://github.com/kohTkd/docker-mkcert.git
cd ./docker-mkcert
docker-compose build
- Start your backend application, such as Ruby on Rails, PHP, and so on.
- Overwrite docker-compose.yml environment for your backend application.
- If you need, modify nginx.conf as you like.
- Run
docker-compose up -d
- Access http://localhost/rootCA.pem and download it.
- Add rootCA.pem to trusted root certifications on your computer.
- If you use macOS, open and trust it on keychain.
- Access https://localhost, then you can access your application over HTTPS!