Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evaldobarbosa/5cc634f5af7e298113171d67eb801e20 to your computer and use it in GitHub Desktop.
Save evaldobarbosa/5cc634f5af7e298113171d67eb801e20 to your computer and use it in GitHub Desktop.
master:
image: rancher/server
container_name: master
volumes_from:
- mysql
ports:
- "8080:8080"
links:
- mysql
environment:
- CATTLE_DB_CATTLE_MYSQL_HOST=mysql
- CATTLE_DB_CATTLE_MYSQL_PORT=3306
- CATTLE_DB_CATTLE_MYSQL_NAME=rancher
- CATTLE_DB_CATTLE_USERNAME=rancher
- CATTLE_DB_CATTLE_PASSWORD=yourpassword
mysql:
image: mysql
container_name: rancherdb
volumes_from:
- mysqldata
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=yourpassword
- MYSQL_DATABASE=rancher
- MYSQL_USER=rancher
- MYSQL_PASSWORD=yourpassword
mysqldata:
container_name : mysqldata
image: gliderlabs/alpine
volumes:
- /var/lib/mysql
command: /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment