Using Docker Compose for PostgreSQL

You can use Docker Compose to run monitoring application along with the PostgreSQL database on docker.

Procedure

  1. Navigate to the bwce_mon directory.
  2. Run the following command to build the application monitoring image.
    docker-compose build
  3. Run the following command, which downloads the PostgreSQL image and configures the database with admin user and bwcemon database.
    docker-compose up postgres_db
    Note: Ensure that the volume is removed before setting up PostgreSQL database on docker.
  4. Run the following command to start the monitoring server on 8080 port.
    docker-compose up mon_app