Sign inSign up

sublimino/docker-nginx-self-signed-ssl

By sublimino

•Updated over 7 years ago

Image
0

250

sublimino/docker-nginx-self-signed-ssl repository overview

⁠docker-nginx-self-signed-ssl

Docker-Image to run nginx with a self-signed SSL certificate.


 

⁠Prerequisites

 

⁠Usage

Run demo site.

docker run \
    --name local.codeclou.io
    -i -t \
    -p 4443:4443 \
    --volume $(pwd)/demo-site/:/opt/www \
   codeclou/docker-nginx-self-signed-ssl:latest

Now you can access from host computer https://local.codeclou.io:4443/ which works with a self-signed certificate. local.codeclou.io always points to 127.0.0.1 but if you use the name to link containers together the DNS gets changed for you.

Example: Link a selenium-standalone-instance to your named nginx-container like so.

docker run \
    -d \
    -p 4444:4444 \
    --link local.codeclou.io \
    selenium/standalone-chrome:3.0.1-aluminum

 

⁠License, Liability & Support

Tag summary

Content type

Image

Digest

Size

5.6 MB

Last updated

over 7 years ago

docker pull sublimino/docker-nginx-self-signed-ssl