- Add Uptime Kuma service for status monitoring with health checks. - Introduce Alertmanager service for alert management and notifications. - Update docker-compose.yml to include new services and their configurations. - Enhance Makefile with commands for managing Uptime Kuma and Alertmanager logs. - Modify Ansible playbook to install necessary packages and configure SSL for new services. - Update Nginx configuration to route traffic to Uptime Kuma and Alertmanager. - Adjust Prometheus configuration to include alert rules and external URLs.
34 lines
730 B
YAML
34 lines
730 B
YAML
# Uptime Kuma Configuration
|
|
# This is a separate docker-compose file for Uptime Kuma
|
|
# It will be included in the main docker-compose.yml
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
uptime-kuma:
|
|
image: louislam/uptime-kuma:latest
|
|
container_name: bots_uptime_kuma
|
|
restart: unless-stopped
|
|
volumes:
|
|
- uptime_kuma_data:/app/data
|
|
ports:
|
|
- "3001:3001"
|
|
environment:
|
|
- UPTIME_KUMA_PORT=3001
|
|
networks:
|
|
- bots_network
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3001"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
uptime_kuma_data:
|
|
driver: local
|
|
|
|
networks:
|
|
bots_network:
|
|
external: true
|