Customized mysql image with customized config, management, monitoring, based on official image.
859
Customized mysql image with customized config, management, monitoring, backup based on official image.
Moved from icmdb/applications/mysql.
git clone https://github.com/icmdb/mysql.git
cd mysql
docker-compose pull
docker-compose up -d
# Remove (Carefully)
docker-compose down
rm -rf ./mysqldata/
rm -rf ./prometheus/
rm -rf ./grafana/
Then you can access:
| Name | Url |
|---|---|
| phpmyadmin | http://127.0.0.1:8080 (root/Passw0rd4MySQLRoot) |
| mysql-exportor | http://127.0.0.1:9104/metrics (mysqld-exporter/Passw0rd4MySQLdExporter) |
| prometheus | http://127.0.0.1:9090 |
| grafana | http://127.0.0.1:3000 (admin/Passw0rd4Grafana) |
| percona toolkit | commands begin with pt-* |
| backup script | /mysql-backup.sh |
Grafana may take 2 minutes to get ready for access!
Recommanded dashboard for mysql: 7362, 7991, 9777

Details see: docker-compose.yml
MYSQL_CREATE_DBS=db1,db2,db3MYSQL_CREATE_USERS=user1:pass1:db1,user2:pass2:db2,user3:pass3:db3Content type
Image
Digest
Size
188 MB
Last updated
over 6 years ago
docker pull k8sclub/mysql