Git Product home page Git Product logo

rancher-ssl's Introduction

rancher ssl

If you find anything that seems to be broken or not working as described below please open an issue or a pull request. Thanks!

This is a docker image to be able to run rancher with SSL using nginx and letsencrypt. All you need to do is the following steps:

  • Setup a DNS a record for the domain you want to use so it points to the same node as you want to run this container on. Wait for it to be active.

  • Restart your rancher server container but without exposing the 80 port and give it a name e.g. rancher-server

  • Start a rancher-ssl container by running one of the commands below.

# This will store certificates inside the container and they will be lost if the container is removed.

sudo docker run --restart=always -p 80:80 -p 443:443 --link <rancher_name>:rancher-server --name rancher-ssl -d -e EMAIL=<your_email> -e DOMAIN=<your_domain> mckn/rancher-ssl
# Specify a volume to store your certificates on the host. They will be stored when you remove the container etc.

sudo docker run --restart=always -p 80:80 -p 443:443 -v <host_vol>:/etc/letsencrypt --link <rancher_name>:rancher-server --name rancher-ssl -d -e EMAIL=<your_email> -e DOMAIN=<your_domain> wzong/rancher-ssl

To inspect what your rancher-ssl container is doing run the follwing command:

docker logs --follow rancher-ssl

nginx should be started and you should be able to go to http://your_domain it will redirect you to https://your_domain and you are now running rancher with SSL.

rancher-ssl's People

Contributors

mckn avatar dictcp avatar dewe avatar wzong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.