Self-Hosting with Coolify: A Step-by-Step Guide

    Self-Hosting with Coolify: A Step-by-Step Guide

    Taking control of my digital presence, on my terms

    Introduction

    Self-hosting your deployments gives you full control and flexibility over your infrastructure. In this step-by-step guide, we'll walk through the process of setting up Coolify on Hetzner VPS to self-host your projects, with a focus on AI applications.


    We'll also explore the benefits of self-hosting compared to using platforms like Vercel.

    Step 1: Getting Two VPS from Hetzner

    Consider the resource needs of your projects when selecting the Deployment VPS plan. You can always scale up later if needed.

    To get started, you'll need to set up two VPS (Virtual Private Servers) from Hetzner:

    1. Coolify VPS: Choose the smallest VPS plan available to host Coolify itself. This VPS will manage your deployments and act as the control plane.

    2. Deployment VPS: Select a larger VPS plan to host your actual deployments and projects. The size of this VPS will depend on the requirements of your applications.

    Personally, I use the CAX11 for Coolify and the CAX31 for my personal projects:

    Step 2: Setting up Coolify on your Hetzner VPS

    Installing Coolify is actually quite easy to do. You simply run one command, and it will auto-install everything you need for you. Please check out the official documentation so you're always up to date.


    After the auto-installer is complete, you'll be able to access the Coolify web interface by opening a browser and navigating to http://<your-coolify-vps-ip>:8000.

    Step 3: Linking Your Deployment VPS to Coolify

    With Coolify set up, let's link your larger Deployment VPS to Coolify:

    1. In the Coolify web interface, navigate to the "Servers" section.
    2. Click on "Add Server" and provide the necessary details for your Deployment VPS, such as its IP address, SSH credentials, and a name for identification.
    3. Coolify will establish a connection to your Deployment VPS and display its status.

    Ensure that your Deployment VPS has Docker installed and the necessary ports open for communication with Coolify. Also make sure it has the required SSH key.

    Step 4: Set up GitHub App to enable Automatic Deployments

    To enable automatic deployments triggered by commits to your GitHub repositories, you need to set up a GitHub App:

    1. In the Coolify web interface, navigate to the "Sources" section.
    2. Click on "Add" and then "GitHub App".
    3. Follow the provided instructions to create a new GitHub App and grant Coolify access to your desired repositories.
    4. Once the GitHub App is set up, Coolify will automatically detect commits to your linked repositories and trigger deployments accordingly.

    You can customize the deployment settings for each repository, such as the branch to deploy from and the build commands to run.

    Benefits of Self-Hosting with Coolify

    Self-hosting your deployments with Coolify offers several advantages compared to using platforms like Vercel, especially for AI projects:

    1. No Timeout Limitations: With Coolify, you have control over your infrastructure, eliminating the strict timeout limitations imposed by platforms like Vercel. This is particularly beneficial for AI applications that require longer processing times.
    2. Customizable Infrastructure: Self-hosting allows you to tailor your infrastructure to the specific needs of your AI projects. You can choose the appropriate resources, libraries, and configurations to optimize performance.
    3. Cost-Effective: By self-hosting, you can significantly reduce hosting costs compared to using managed platforms. You have the flexibility to select cost-effective VPS plans and scale resources based on your application's requirements.
    4. Full Control and Flexibility: Self-hosting with Coolify gives you complete control over your deployment pipeline. You can customize build processes, set up custom domains, and integrate with your preferred tools and services.

    Self-hosting with Coolify empowers you to build and deploy AI applications without the limitations and costs associated with managed platforms.

    Conclusion

    In this step-by-step guide, we explored how to set up Coolify on Hetzner VPS to self-host your deployments. By following these steps and leveraging the benefits of self-hosting, you can take control of your infrastructure and build powerful AI applications without the constraints of managed platforms. Embrace the flexibility and freedom of self-hosting with Coolify and unlock the full potential of your AI projects!

    Own Your AI Stack.

    (no ML or infra expertise needed)

    Train AI models that actually belong to you. No model deprecations, no training on your data, and instantly get shareable chat interfaces you can monetize. It's your creation, your rules.

    3-Click Fine-Tuning

    Upload your data, select a base model, and fine-tune in minutes

    Deploy & Monetize Instantly

    Get API endpoints and beautiful shareable chat interfaces you can embed or charge for

    Model Marketplace

    Choose from dozens of open source models - text, image, code, and more

    Multi-Modal Models

    Text, image, code, and vision models - all open source and customizable

    Private Data Training

    Big labs will never see or train on your data - it stays completely private

    No Model Deprecations

    Your models stay live forever - no surprise shutdowns or forced upgrades

    Enterprise Security

    Bank-level security with OAuth, encrypted data, and private deployments

    Any Model Type

    Code generation, image creation, audio processing - all open source

    We also have testimonials.

    (real ones)

    Yes, what these people say is true. We are awesome. And you will be too.

    This is a great service, I highly recommend it!

    John Doe
    CEO, ABC Inc.

    I was blown away by the quality of the work delivered.

    Jane Smith
    CTO, DEF Inc.

    This is by far the best solution I have ever used.

    Bob Johnson
    Founder, GHI Inc.

    Simple, Fair Pricing.

    (scale as you grow)

    Start free, upgrade when you need more. Fine-tuning costs are pay-per-use, so you only pay for what you create.

    Free

    Perfect for exploring and creating your first AI models. No credit card required.

    $

    $0

    Start Building Free
    • 1,000 chat messages per month
    • Basic theme customization
    • Public model sharing
    • Community support
    • Fine-tuning jobs: $20 each
    • API access
    • Advanced themes
    • Custom domains
    • Revenue sharing

    Pro
    Most Popular

    Everything you need to build and deploy professional AI applications.

    $

    $20

    /month

    Go Pro
    • Unlimited chat messages
    • Full API access
    • Advanced theme builder
    • Priority support
    • Model analytics
    • Fine-tuning jobs: $18 each
    • Revenue sharing
    • Custom domains
    • White-label features

    Creator

    Turn your AI expertise into revenue with our creator economy platform.

    $

    $50

    /month

    Start Earning
    • Everything in Pro
    • 60-70% revenue sharing
    • Creator analytics dashboard
    • Custom domain support
    • Monetization tools
    • White-label options
    • Fine-tuning jobs: $15 each
    Avatar 1
    Avatar 2
    Avatar 3
    Avatar 4
    Avatar 5

    Join creators building the future of AI

    You should buy our product.

    (please, so I can pay rent)

    If you buy our product, and every other person buys it too, then I would be set for life. So please, do, otherwise, I have to work a 9-5.

    Image of something

    FAQ

    Frequently Asked Questions

    Here you'll find answers to common questions about our company.

    • This platform is designed to provide users with a seamless experience in managing their tasks and improving productivity.
    • You can create an account by clicking on the 'Sign Up' button on the homepage and following the instructions.
    • Our platform is web-based and can be accessed from any device with an internet connection and a modern web browser.
    • You can reset your password by clicking on the 'Forgot Password' link on the login page and following the instructions.
    • Yes, we prioritize user data security and have implemented robust security measures to protect your information.
    • You can contact our customer support team via the 'Contact Us' page or by sending an email to support@ourplatform.com.