https://github.com/jamesslomka/docker-https
nginx reverse proxy to allow for https on local docker containers
https://github.com/jamesslomka/docker-https
docker docker-compose https nginx-proxy
Last synced: 2 months ago
JSON representation
nginx reverse proxy to allow for https on local docker containers
- Host: GitHub
- URL: https://github.com/jamesslomka/docker-https
- Owner: jamesslomka
- Created: 2021-01-27T00:56:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-26T19:23:45.000Z (about 2 years ago)
- Last Synced: 2025-02-12T11:17:07.921Z (4 months ago)
- Topics: docker, docker-compose, https, nginx-proxy
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-https
nginx reverse proxy to support https for your docker containers
### Installation:
1. Setup [mkcert](https://github.com/FiloSottile/mkcert)
* `brew install mkcert`
* `mkcert -install`
* `mkcert localhost 127.0.0.1`
2. Replace the generated `localhost+1-key.pem` and `localhost+1.pem` in the `certs` directory
3. Update `proxy_pass` in `nginx/nginx.conf` to whichever docker namespace your service is using (ensure you also update the port it exposes)
4. Add the service to your `docker-compose.yml`
https://github.com/jamesslomka/docker-https/blob/ad7aed779bfbcdb4acf14e975e9ce3b14dffa22e/docker-compose.yml#L5-L11
5. `docker-compose up -d https`