...
πŸš€ how to deploy cosmos cloud on ubuntu vps
Learn how to deploy cosmos cloud on ubuntu vps!

This article provides a guide to deploy Cosmos Cloud on Ubuntu VPS.

What is Cosmos Cloud?

Cosmos Cloud is a self-hosted platform-as-a-service (PaaS) that lets you deploy, manage, and monitor applications (especially Docker-based apps) through a clean web UI. Think of it as a lightweight alternative to tools like Portainer or Coolify, but with built-in reverse proxy, SSL, and app marketplace features.

βœ… Requirements

  • Ubuntu 22.04 or Ubuntu 24.04 VPS
  • Root or sudo access
  • Minimum:
    • 1 vCPU
    • 1 GB RAM (2 GB recommended)
    • 10 GB disk
  • Domain or subdomain (recommended)

Launch 100% ssd ubuntu vps from $3. 19/mo!


Compare Ubuntu VPS Plans

KVM-SSD-1
KVM-SSD-8
KVM-SSD-16
KVM-SSD-32
CPU
1 Core
2 Cores
4 Cores
8 Cores
Memory
1 GB
8 GB
16 GB
32 GB
Storage
16 GB NVMe
128 GB NVMe
256 GB NVMe
512 GB NVMe
Bandwidth
1 TB
4 TB
8 TB
16 TB
Network
1 Gbps
1 Gbps
1 Gbps
1 Gbps
Delivery Time
⏱️ Instant
⏱️ Instant
⏱️ Instant
⏱️ Instant
Location
US/FR
US/FR
US/FR
US/FR
Price
$7.58*
$39.50*
$79.40*
$151.22*
KVM-SSD-1
CPU: 1 Core
Memory: 2 GB
Storage: 16 GB NVMe
1 TB
KVM-SSD-8
CPU: 2 Cores
Memory: 8 GB
Storage: 128 GB NVMe
4 TB
KVM-SSD-16
CPU: 4 Cores
Memory: 16 GB
Storage: 256 GB NVMe
8 TB
KVM-SSD-32
CPU: 8 Cores
Memory: 32 GB
Storage: 512 GB NVMe
16 TB

How to Deploy Cosmos Cloud on Ubuntu VPS

To deploy Cosmos Cloud on Ubuntu VPS, follow the steps provided below:

  1. Update System

    apt update && apt upgrade -y
    

    Install essentials:

    apt install -y curl wget git ufw
    
  2. Install Docker

    Cosmos Cloud runs entirely on Docker.

    curl -fsSL https://get.docker.com | bash
    

    Enable and start Docker:

    systemctl enable docker
    systemctl start docker
    

    Verify:

    docker --version
    
  3. (Optional) Configure Firewall

    ufw allow OpenSSH
    ufw allow 80
    ufw allow 443
    ufw allow 4242
    ufw enable
    
  4. Deploy Cosmos Cloud

    Run the official install command:

    curl -fsSL https://cosmos-cloud.io/get.sh | sudo -E bash -s
    

    This script will:

    • Pull Cosmos Cloud Docker image
    • Configure reverse proxy
    • Start the Cosmos container
    • Expose UI on port 4242
  5. Access Cosmos Dashboard

    Cosmos cloud welcome screen
    Cosmos cloud welcome screen

    Open your browser:

    http://YOUR_SERVER_IP:4242
    

    You’ll be prompted to:

    • Create admin account
    • Set password
    • Configure initial settings

    Cosmos cloud dashboard
    Cosmos cloud dashboard
  6. Set Up Domain + SSL (Recommended)

    Inside Cosmos UI:

    1. Go to Settings β†’ Domains
    2. Add your domain (e.g., cosmos.yourdomain.com)
    3. Enable:
      • Reverse proxy
      • Automatic SSL (Let’s Encrypt)

    Point your DNS:

    A record β†’ YOUR_SERVER_IP
    
  7. Deploy Your First App

    Cosmos supports Docker Compose apps.

    Example: Deploy Nginx

    1. Go to Apps β†’ Create App
    2. Choose Docker Compose
    3. Paste:
      version: "3"
      services:
        web:
          image: nginx:latest
          ports:
            - "8080:80"
      
    4. Click Deploy

    Access:

    http://YOUR_SERVER_IP:8080
    
  8. Use Built-in Reverse Proxy

    Instead of exposing ports manually:

    1. Edit your app
    2. Enable HTTP routing
    3. Assign domain:
      app.yourdomain.com
      
    4. Enable SSL

    Now your app is available at:

    https://app.yourdomain.com
    
  9. Monitoring & Management

    Cosmos provides:

    • Container logs
    • Resource usage
    • Restart policies
    • One-click updates
    • App marketplace
  10. Secure Your Deployment

    Change default port (optional)

    Edit Docker config:

    docker ps
    docker inspect cosmos
    

    Or redeploy with custom port mapping.

    Enable Fail2Ban (recommended)

    apt install fail2ban -y
    

    Regular updates

    docker pull ghcr.io/cosmos-cloud/cosmos:latest
    docker restart cosmos
    
  11. Backup Strategy

    Backup volumes:

    docker volume ls
    

    Example:

    docker run --rm -v cosmos_data:/data -v $(pwd):/backup busybox tar czf /backup/cosmos-backup.tar.gz /data
    

⚑ Advanced Tips

Use Cosmos as a full PaaS

You can deploy:

  • WordPress
  • Node.js apps
  • Laravel
  • Static sites
  • APIs

Multi-app hosting

Cosmos handles:

  • Routing
  • SSL
  • Subdomains
  • App isolation

Replace traditional stack

You can avoid:

  • Manual Nginx configs
  • Certbot setup
  • Separate Docker tools

🧩 Troubleshooting

Port already in use

lsof -i :4242

Docker not running

systemctl restart docker

Cannot access UI

Check:

docker logs cosmos

🎯 Summary

Cosmos Cloud turns your Ubuntu VPS into a self-hosted PaaS with:

  • One-command install
  • Built-in reverse proxy + SSL
  • App deployment via Docker Compose
  • Clean UI for management

Launch 100% ssd ubuntu vps from $3. 19/mo!

Conclusion

You now know how to deploy Cosmos Cloud on Ubuntu VPS.

Avatar of editorial staff

Editorial Staff

Rad Web Hosting is a leading provider of web hosting, Cloud VPS, and Dedicated Servers in Dallas, TX.
lg