HUB
Sign inSign up
docker-nginx-hostname logo

makocchi/docker-nginx-hostname

By makocchi

•Updated over 7 years ago

Nginx image that shows container's hostname

Image
0

7.4K

makocchi/docker-nginx-hostname repository overview

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

Make your ssl cert.

$ openssl genrsa -out ssl.key 2048
$ openssl req -x509 -new -nodes -key ssl.key -days 10000 -out ssl.crt -subj "/CN=makocchi.com"
$ cp ssl.key ssl.crt files/etc/nginx/conf.d/.
Tag summary
Recent tags
Content type
Image
Digest
Size
3.2 MB
Last updated
almost 8 years ago
docker pull makocchi/docker-nginx-hostname:latest