Server installation
Deploy the Monitoring server with Docker Compose: MySQL, Memcached and the server image.
1. Project directory
mkdir monitoring-server\ncd monitoring-server2. Environment file
Create .env (change the password and salt):
TZ=Europe/London
MYSQL_PASSWORD=YourSecureRootPassword123
NGINX_PORT=80
MEMCACHED_HOST=memcached
PASSWORD_SALT=YourRandomSaltStringHere123456789SecurityUse a long random
PASSWORD_SALT and a strong MySQL password. Never commit .env.3. docker-compose.yml
---
services:
mysql:
container_name: monitoring-mysql
image: mysql:latest
restart: always
environment:
TZ: ${TZ:-UTC}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD:-RootPassword}
volumes:
- ./mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysql", "-h", "127.0.0.1", "-u", "root", "--password=${MYSQL_PASSWORD:-RootPassword}", "-e", "show databases;"]
start_period: 10s
interval: 5s
timeout: 5s
retries: 55
memcached:
container_name: "monitoring-memcached"
image: memcached
restart: always
environment:
TZ: ${TZ:-UTC}
command:
- --conn-limit=1024
- --memory-limit=32
- --threads=4
server:
container_name: "monitoring-server"
image: "akeb/monitoring:latest"
restart: always
environment:
TZ: ${TZ:-UTC}
NGINX_PORT: ${NGINX_PORT:-80}
MYSQL_HOST: mysql
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-RootPassword}
MEMCACHED_HOST: ${MEMCACHED_HOST:-memcached}
PASSWORD_SALT: ${PASSWORD_SALT:-bHchLzC3B99Ss1213127fdw876EDghc2gkDdtg}
volumes:
- ./logs/php/:/var/log/php/:rw
- ./logs/nginx/:/var/log/nginx/:rw
ports:
- "${NGINX_PORT:-80}:80"
depends_on:
mysql:
condition: service_healthy
memcached:
condition: service_started4. Start
docker compose up -dOpen http://your-server-ip (or the host/port you mapped).
First login
- Email:
admin@admin.com - Password:
Admin@123
Optional: configure SMTP, Telegram bot token, OpenID/OAuth via environment variables — see Environment variables and Authentication.
Workers & agents without DockerDownload ready binaries from GitHub Releases (no Go build on the server) — see Workers and Host agents.