Created
August 5, 2015 17:35
-
-
Save brancz/0ec12891b6bbe809f72c to your computer and use it in GitHub Desktop.
single host rancher setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --name rancher-mysql -v /data/docker/rancher/mysql:/var/lib/mysql --restart=always -d \ | |
-e MYSQL_ROOT_PASSWORD=my-secret-pw \ | |
-e MYSQL_USER=rancher \ | |
-e MYSQL_PASSWORD=my-secret-pw \ | |
-e MYSQL_DATABASE=rancher \ | |
mysql | |
docker run --name rancher-server -d --restart=always --link rancher-mysql:mysql -p 80:8080 \ | |
-e CATTLE_DB_CATTLE_MYSQL_HOST=$MYSQL_PORT_3306_TCP_ADDR \ | |
-e CATTLE_DB_CATTLE_MYSQL_PORT=3306 \ | |
-e CATTLE_DB_CATTLE_MYSQL_NAME=rancher \ | |
-e CATTLE_DB_CATTLE_USERNAME=rancher \ | |
-e CATTLE_DB_CATTLE_PASSWORD=my-secret-pw \ | |
rancher/server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment