Using Docker Compose for MySQL
You can use Docker Compose to run a monitoring application along with the MySQL database on Docker.
Note: Running the monitoring application using Docker Compose is not recommended for production deployment.
- Procedure
- Navigate to the bwce_mon directory.
- Run the following command to build the application monitoring image.
docker-compose build
- Run the following command, which downloads the MySQL image and configures the database with
admin user and
bwcemon database.
docker-compose up mysql_db
Note: Ensure that the volume is removed before setting up a MySQL database on Docker. - Run the following command to start the monitoring server on
8080
port.docker-compose up mon_app