Uptime Kuma Docker Installation Guide | Generated by AI

Home 2026.03

1. Prerequisites Check

2. Directory Structure

~/uptime-kuma/
├── docker-compose.yml          # Service definition
└── uptime-kuma-data/          # Persistent volume (created automatically)

3. Docker Compose Configuration

services:
  uptime-kuma:
    image: louislam/uptime-kuma:1      # Official image (latest stable)
    container_name: uptime-kuma         # Fixed name for easier management
    restart: unless-stopped             # Auto-restart on failures, manual stops excluded
    volumes:
      - ./uptime-kuma-data:/app/data   # Persists configuration, database, and SSL certs
    ports:
      - "3001:3001"                     # Host:Container port mapping
    environment:
      - PUID=1000                       # User ID (matches host user)
      - PGID=1000                       # Group ID
      - TZ=Asia/Hong_Kong               # Timezone for logs and schedules

Key Decisions Explained:

4. Deployment Process

# Create directory and navigate
mkdir -p ~/uptime-kuma && cd ~/uptime-kuma

# Write docker-compose.yml (as above)
cat > docker-compose 'EOF' ...

# Pull image and start container in detached mode
docker-compose up -d

# Verify container status
docker-compose ps
docker-compose logs -f uptime-kuma  # Monitor startup logs

5. Post-Install Verification

6. Initial Setup (First Access)

  1. Navigate to http://server-ip>:3001
  2. Create Admin Account:
    • Username (recommend: admin or custom)
    • Strong password
    • Email (optional, for alerts)
  3. Dashboard Configuration:
    • Add monitoring targets (websites, APIs, servers)
    • Configure notification channels (Telegram, Discord, email, etc.)
    • Set check intervals and timeouts

7. Persistent Data Management

8. Maintenance Commands

# Stop service
cd ~/uptime-kuma && docker-compose down

# Start service
docker-compose up -d

# View logs
docker-compose logs -f uptime-kuma

# Update to latest version
docker-compose pull && docker-compose up -d

# Remove completely (WARNING: deletes data unless volume preserved)
docker-compose down -v

9. Security Considerations

10. Integration Options

11. Troubleshooting

Symptom Likely Cause Solution
Port 3001 unreachable Firewall blocking ufw allow 3001/tcp
Container exits immediately Volume permission issues chown -R 1000:1000 uptime-kuma-data
Dashboard shows “Disconnected” Browser cache or WebSocket issue Clear cache or check reverse proxy config

12. Next Steps

  1. Set up monitoring targets (start with critical services)
  2. Configure alerts (test with Telegram/Discord)
  3. Consider reverse proxy for HTTPS access
  4. Regular backups of uptime-kuma-data directory
  5. Monitor resource usage (docker stats uptime-kuma)

Current Status: ✅ Running at httpserver-ip>:3001, data persisted, auto‑restart enabled. Ready for initial configuration.


Back Donate