-
-
Save evaldobarbosa/5cc634f5af7e298113171d67eb801e20 to your computer and use it in GitHub Desktop.
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
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