Own AILab with Self-Hosted AI Server Stack

After experimenting with various AI and DevOps tools, I found the following architecture to be a reliable, scalable, and easy-to-manage setup for running AI applications at home or in a small office.

Server Architecture

Ubuntu 24.04 LTS
│
├── Docker Engine
├── Coolify
├── Portainer
├── Watchtower
├── Duplicati (Backups)
├── Uptime Kuma
│
├── AI Services
│   ├── Ollama
│   ├── Open WebUI
│   ├── ComfyUI
│   ├── n8n
│   ├── Qdrant
│   ├── PostgreSQL
│   ├── Redis
│   └── MinIO
│
├── Reverse Proxy
│   └── Caddy (or Traefik)
│
└── Cloudflare Tunnel (Optional)
Why this stack?

This combination provides an excellent balance between deployment automation, container management, security, monitoring, backups, and AI workload management.

Recommended Components

What Each Component Does

Component Purpose
Coolify Deploy and manage applications using Docker Compose or Git repositories.
Portainer Provides an intuitive web interface for managing Docker containers, volumes, networks, and logs.
Watchtower Automatically updates Docker containers that use published images.
Caddy / Nginx Proxy Manager Handles reverse proxying, HTTPS certificates, and custom domains.
Uptime Kuma Monitors the health and availability of all running services.
Duplicati Creates scheduled backups of application data and configuration.

1. Coolify ⭐⭐⭐⭐⭐

Best for: Self-hosting AI applications, Docker Compose stacks, and web applications.

Advantages

Ideal Applications

Limitations


2. Portainer ⭐⭐⭐⭐☆

Best for: Managing Docker containers and troubleshooting running services.

Advantages

Limitations


3. Dockge ⭐⭐⭐⭐☆

Dockge is developed by the creator of Uptime Kuma and focuses on Docker Compose management.

Advantages

Limitations


4. CasaOS ⭐⭐⭐☆☆

CasaOS is designed primarily for home servers and media servers.

Best For

Limitations

While CasaOS is excellent for home media servers, it is less suitable for AI development and production workloads compared to Coolify or Portainer.


My Recommendation

For AI Development & Self-Hosting

This setup offers the perfect balance between deployment automation, operational visibility, monitoring, security, backups, and long-term maintainability.