A PHPServerMon Docker image. PHPServerMon is a simple service monitoring system written in PHP.
50K+
PHPServerMon is a simple opensource server monitoring software. It helps you to monitor your services and your websites, simply declare your services and websites in the application and PHPServerMon will check them and warn you by mail, sms and/or push notifications when their status changes.
This container contains the phpservermon application bundled with a script that will trigger the check of the services at a user defined interval.
To run this image you need to have a mysql server up and configured. You need to create the database for phpservermon before starting the app.
docker run -d -p 80:80 -e PSM_BASE_URL="" \
-e PSM_DB_HOST="mysql" \
-e PSM_DB_PORT="3306" \
-e PSM_DB_NAME="phpservermon" \
-e PSM_DB_USER="root" \
-e PSM_DB_PASS="test" \
-e PSM_DB_PREFIX="" \
-e UPDATE_INTERVAL=30
--name phpservermon invartam/docker-phpservermon
The configuration is done via environment variables passed to the container. The environment variables are:
version: "2"
services:
mysql:
image: mysql
container_name: mysql
environment:
- MYSQL_ROOT_PASSWORD=test
expose:
- "3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=test
container_name: phpmyadmin
ports:
- "8080:80"
phpservermon:
image: invartam/docker-phpservermon
container_name: phpservermon
environment:
- PSM_BASE_URL=""
- PSM_DB_HOST="mysql"
- PSM_DB_PORT="3306"
- PSM_DB_NAME="phpservermon"
- PSM_DB_USER="root"
- PSM_DB_PASS="test"
- PSM_DB_PREFIX=""
- UPDATE_INTERVAL=30
ports:
- "8081:80"
Content type
Image
Digest
Size
76.5 MB
Last updated
almost 8 years ago
docker pull invartam/docker-phpservermon