Forked from zekizeki/rancher docker-compose with mysql
Created
April 27, 2017 07:38
-
-
Save sax1johno/243f876e45564b0497710dd5eb0fc76a 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