Skip to main content

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:

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:

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

Troubleshooting

For troubleshooting help, see our Troubleshooting Guide.