An open API service indexing awesome lists of open source software.

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

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`