note - make sure to replace the <path_to_file> with the folder path where you have placed the 'docker-compose.yml' configuration file

-- command to run mailhog in background
docker-compose -f <path_to_file>/docker-compose.yml up -d

-- command to check if the container is started successfully or not
docker ps -a

-- command to stop and remove mailhog container
docker-compose -f <path_to_file>/docker-compose.yml down
