Installation Guide
Choose the installation method that best fits your needs. We recommend starting with our Cloud SaaS option for the fastest setup.
Choose Your Installation Method
Cloud SaaS
RECOMMENDEDZero installation. Sign up and start monitoring immediately.
Docker
Run DB24x7 in containers with Docker Compose.
Self-Hosted
Install directly on your server infrastructure.
Cloud SaaS Installation
The fastest way to get started. No installation required, no infrastructure to manage.
Steps
- Visit db24x7.com/signup
- Create your account with email and password
- Verify your email address
- Log in to your dashboard
- Click "Add Database" to connect your first database
Benefits of Cloud SaaS
- • Automatic updates and security patches
- • 99.9% uptime SLA
- • Scalable infrastructure
- • No maintenance required
- • Enterprise-grade security
Docker Installation
Deploy DB24x7 using Docker containers for easy deployment and management.
Prerequisites
- Docker 20.10 or later
- Docker Compose 2.0 or later
- 4GB RAM minimum
- 10GB disk space
Installation Steps
1. Create a docker-compose.yml file:
version: '3.8'
services:
db24x7:
image: db24x7/db24x7:latest
container_name: db24x7
ports:
- "3000:3000"
environment:
- DB24X7_DB_URL=postgresql://user:pass@postgres:5432/db24x7
- DB24X7_SECRET_KEY=${SECRET_KEY}
- DB24X7_AI_API_KEY=${AI_API_KEY}
depends_on:
- postgres
restart: unless-stopped
volumes:
- db24x7-data:/app/data
postgres:
image: postgres:15-alpine
container_name: db24x7-postgres
environment:
- POSTGRES_USER=db24x7
- POSTGRES_PASSWORD=secure_password
- POSTGRES_DB=db24x7
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
db24x7-data:
postgres-data:2. Create a .env file:
SECRET_KEY=your_secret_key_here AI_API_KEY=your_ai_api_key_here
3. Generate a secure secret key:
openssl rand -hex 324. Start the containers:
docker-compose up -d5. Check the logs:
docker-compose logs -f db24x76. Access the web interface:
http://localhost:3000Production Deployment
For production, use a reverse proxy (nginx/Traefik) with SSL, configure proper backup strategies for volumes, and use Docker secrets for sensitive data instead of environment variables.
Self-Hosted Installation
Install DB24x7 directly on your server for maximum control and customization.
Prerequisites
- Linux server (Ubuntu 20.04+, CentOS 7+, RHEL 7+)
- Node.js 18 or later
- PostgreSQL 12+ (for DB24x7 metadata)
- 4GB RAM minimum
- 20GB disk space
Installation Steps
1. Download the latest release:
curl -L https://releases.db24x7.com/latest/db24x7-linux-x64.tar.gz -o db24x7.tar.gz2. Extract the archive:
tar -xzf db24x7.tar.gz && cd db24x73. Install dependencies:
npm install --production4. Configure environment variables:
cp .env.example .env && nano .env5. Run database migrations:
npm run migrate6. Start the application:
npm startRunning as a Service (systemd)
# /etc/systemd/system/db24x7.service [Unit] Description=DB24x7 Database Monitoring After=network.target postgresql.service [Service] Type=simple User=db24x7 WorkingDirectory=/opt/db24x7 Environment=NODE_ENV=production ExecStart=/usr/bin/node /opt/db24x7/dist/server.js Restart=always RestartSec=10 [Install] WantedBy=multi-user.target
sudo systemctl enable db24x7sudo systemctl start db24x7Environment Variables
Configure DB24x7 using these environment variables.
| Variable | Required | Default | Description |
|---|---|---|---|
| DB24X7_PORT | No | 3000 | Port for the web interface |
| DB24X7_DB_URL | Yes | N/A | PostgreSQL connection string for DB24x7's metadata storage |
| DB24X7_SECRET_KEY | Yes | N/A | Secret key for encryption (generate with openssl rand -hex 32) |
| DB24X7_AI_API_KEY | No | N/A | API key for AI features (OpenAI, Anthropic, etc.) |
| DB24X7_SMTP_HOST | No | N/A | SMTP server for email notifications |
| DB24X7_LOG_LEVEL | No | info | Logging level: debug, info, warn, error |
Verify Installation
Post-Installation Checklist
- Access the web interface at the configured URL
- Create an admin account
- Check that all services are running
- Review logs for any errors
- Test database connectivity
Health Check Command
Verify that DB24x7 is running correctly:
curl http://localhost:3000/healthExpected response: {"status": "healthy", "version": "1.0.0"}