Name: eea.docker.rancher
Owner: European Environment Agency
Description: containers as a service platform at EEA
Created: 2015-11-24 14:49:12.0
Updated: 2017-09-17 08:30:03.0
Pushed: 2016-10-20 06:35:10.0
Homepage: https://rancher.eea.europa.eu
Size: 6070
Language: Nginx
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
DEPRECATION NOTE: This github repo is for example deployments only and will not be updated anymore. The production deployment files are in EEASVN see eea internal wiki.
This repo includes the docker-compose orchestration for deployment of a Rancher server in a single node setup.
It uses an external mysql service with named volumes.
You must have Docker and Docker compose installed on your host.
Before starting the server you must add the secret key file named “server-eea.key” under the bind-mounted directory ./ngnix/tls. This adds SSL termination in nginx in front of Rancher as descirbed in docs.
t clone https://github.com/eea/eea.docker.rancher
eea.docker.rancher
Configure the secrets
dbsecrets.env-dist dbsecrets.env
dbsecrets.env
mysqlsecrets.env-dist mysqlsecrets.env
mysqlsecrets.env
Start the mysql server and setup the rancher cattle DB as described in rancher with external database. Close the mysql service.
Than finally run the full stack:
cker-compose up -d
Go to http://yourhost/ to view the Rancher server UI.
Rancher uses mysql to store all Rancher metadata and settings. In the docker-compose file you can see that we store the data in a named volume.
We also have a mysql-backup service which will automatically do mysql dumps at certain intervals specified via environment variables. See the original docker image deitch/mysql-backup/ for more info. The dumps are stored under ./mysql-backup.
For supsequent upgrades you just need to pull the new image and bump up the version in the docker-compose.yml file and restart, in the example below we use v1.1.0.
cker pull rancher/server:v1.1.0
docker-compose.yml # bump-up the version and save
cker-compose up -d
See the rancher official upgrade documentation.
See more on official page