makocchi-ca / docker-nginx-hostname

Nginx image that shows container's hostname

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

makocchi/docker-nginx-hostname makocchi/docker-nginx-hostname

docker-nginx-hostname

Nginx image that shows container's hostname

Usage

$ sudo docker run -d -p80:80 -p443:443 --name=sample-web makocchi/docker-nginx-hostname

make ssl.key and ssl.crt

$ openssl genrsa -out ssl.key 2048
$ openssl req -x509 -new -nodes -key ssl.key -days 10000 -out ssl.crt -subj "/CN=makocchi.com"

About

Nginx image that shows container's hostname

License:Do What The F*ck You Want To Public License


Languages

Language:Dockerfile 100.0%