Skip to content

A docker nginx reverse proxy with ssl termination to run rancher server over https.

License

Notifications You must be signed in to change notification settings

codedevote/docker-nginx-ssl-proxy-rancher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx reverse proxy with ssl termination for rancher server

maintained by codedevote

Overview

This Dockerfile gives you a secured nginx reverse proxy that terminates ssl and proxy passes to a rancher server. This image is based on marvambass/docker-nginx-ssl-secure and adds a nginx configuration file for rancher server (rancher/rancher).

View in Docker Hub codedevote/nginx-ssl-proxy-rancher

View in GitHub codedevote/docker-nginx-ssl-proxy-rancher

Environment variables and defaults

Inherited from base image

  • DH_SIZE
  • default: 2048 (which takes a long time to create), for demo or unsecure applications you can use smaller values like 512

Required by this image

  • RANCHER_URL
  • default: localhost

Running codedevote/nginx-ssl-proxy-rancher container

All the information on running the base image also applies to this container.

Assumptions

  • A rancher server can be reached on the docker network at http://rancher:8080 (for information on how to setup a rancher server refer to https://github.com/rancher/rancher).
  • You bind-mount a directory to /etc/nginx/external with the following minimum contents:
  • SSL certificate (chained for intermediate CAs) in a file called cert.pem
  • Private key in a file called key.pem
  • You can also put a dh.pem file here (see base image docs). If not, one will be created on first start.

Run command

To run this image you can use the following command:

docker run -d \
-p 80:80 -p 443:443 \
-e 'RANCHER_URL=rancher.example.org' \
-v $EXT_DIR:/etc/nginx/external/ \
codedevote/nginx-ssl-proxy-rancher

About

A docker nginx reverse proxy with ssl termination to run rancher server over https.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages