Docker Setup
Learn how to run Site Availability Monitoring using Docker and Docker Compose for easy deployment and development.
Docker Compose Setups
The project includes several pre-configured Docker Compose setups for different scenarios.
Single Server Setup
Perfect for testing and small deployments:
cd helpers/docker-compose/single-server
docker-compose up -d
This setup includes:
- Site Availability Monitoring backend
- React frontend
- Prometheus for metrics
- Sample application to monitor
Services:
- Frontend: http://localhost:3000
- Backend: http://localhost:8080
- Prometheus: http://localhost:9090
Multiple Servers Setup
For production-like environments with multiple applications:
cd helpers/docker-compose/multiple-servers
docker-compose up -d
This setup includes:
- Multiple backend instances
- Load balancer
- Prometheus federation
- Multiple sample applications
Services:
- Frontend: http://localhost:3000
- Backend Cluster: http://localhost:8080
- Prometheus: http://localhost:9090
Environment Variables
Configure the application using environment variables:
Backend Environment Variables
# Configuration
CONFIG_FILE=/app/config.yaml
LOG_LEVEL=info
PORT=8080
# Custom CA certificates (configured in config.yaml)
# server_settings:
# custom_ca_path: /app/certs
# Prometheus settings
PROMETHEUS_URL=http://prometheus:9090
SCRAPE_INTERVAL=30s
Next Steps
- 🚀 Deploy to production with Kubernetes
- ⚙️ Configure monitoring with Prometheus
- 🛡️ Set up Authentication
Troubleshooting
For troubleshooting help, see our Troubleshooting Guide.