Skip to content

weahead/rancher-server

Repository files navigation

We ahead's Rancher setup

Latest release Rancher v1.2.0 nginx 1.11.6 MariaDB 10.1.19

Requirements

  • Docker Engine 1.10.0+
  • Docker Compose 1.6.0+
  • Valid SSL certificates from a CA for the domain Rancher will be available at.
  • Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits. Generate with openssl dhparam -out dhparams.pem 2048.

Get up and running

  1. Clone this repo or download the latest release.

  2. Place SSL certificates and dhparams.pem in folder /certs on the host. Alternatively you may change the location of this folder in the docker-compose.yml file.

  3. Copy rancher.sample.env to rancher.env and set appropriate values for your environment.

  4. Run

docker-compose up -d
  1. Give all the services a few moments to start up properly. Once everything is up and running Rancher should be available at https://RANCHER_FQDN

Upgrading

  1. If you cloned the repo, pull the latest master, otherwise download the latest release.

  2. Run

docker-compose up -d
  1. Give all the services a few moments to start up properly. Once everything is up and running Rancher should be available at https://RANCHER_FQDN

Troubleshooting

Nginx does not start.

  • Make sure the SSL certificates are valid, issued by a trusted CA and readable by nginx.
  • Make sure the dhparams.pem file is readable.
  • Make sure that the ports 80 and 443 are available on the host.