Docker-Image to run nginx with a self-signed SSL certificate.
- Runs as non-root with fixed UID 10777 and GID 10777. See howto prepare volume permissions.
- See howto use SystemD for named Docker-Containers and system startup.
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
- Dockerfile and Image is provided under MIT License