- Build the containers
sudo docker-compose build
- Spin up the containers
sudo docker-compose up -d
- Load the
world
database
sudo docker exec -it grafanaplayground_mysql_1 sh -c 'mysql -h localhost --user=root --password=$MYSQL_PASSWORD sys < /etc/mysql/databases/world.sql'
- Load the Sakila database
sudo docker exec -it grafanaplayground_mysql_1 sh -c 'mysql -h localhost --user=root --password=$MYSQL_PASSWORD sys < /etc/mysql/databases/sakila.sql'
Mysql User | Mysql Pass | Mysql port from host | Mysql port from Grafana |
---|---|---|---|
root | chulengo | 3308 | 3306 |