Coolify Documentation
website·Indexed 35 days ago
https://docs.coollabs.ioDocumentation for Coolify v3, an open-source self-hosting platform. Includes guides on installation, architecture, and deploying applications using Docker, Docker Compose, and various frameworks such as Next.js, Node.js, Python, Rust, and Laravel.
What's inside Coolify
- safeTyper is a privacy-focused alternative to Grammarly. It allows users to maintain ownership of their typed data. The MVP version (1.0) utilizes OpenAI's GPT models via API to perform grammar checks. Because it uses the OpenAI API, data is handled according to OpenAI's API privacy policies (which generally do not use API data to train models).
Overview of Coolify self-hosting platform
v3Coolify is a self-hostable, all-in-one IaaS (Infrastructure as a Service) solution designed as an alternative to platforms like Heroku and Netlify. It allows users to host applications, databases, and open-source services with minimal configuration. Key capabilities include:
- Application Deployment: Supports Static, NodeJS, Svelte, React, Vue, Next, Nuxt, Astro, PHP, and Rust with automatic reverse proxy and free SSL certificates.
- Database Management: One-click deployment for MongoDB, MySQL, PostgreSQL, CouchDB, and RedisDB.
- Service Deployment: One-click deployment for tools such as WordPress, Ghost, Plausible Analytics, NocoDB, BitWarden/VaultWarden, LanguageTool, N8n, and VSCode Server.
- Infrastructure Flexibility: Resources can be deployed to either a Local Docker Engine or a Remote Docker Engine.
- Git Integration: Integrates with GitHub and GitLab (both hosted and self-hosted versions), supporting automatic deployments for new commits and separate deployments for pull requests.
- Team Management: Includes a team management system where teams are separated by namespaces.
Overview of Coolify Services
v3Services in Coolify are popular open-source, self-hostable applications provided as pre-configured templates. Supported services include WordPress, Ghost, Plausible Analytics, NocoDB, VSCode Server, MinIO, VaultWarden, LanguageTool, n8n, Uptime Kuma, MeiliSearch, Umami, Fider, Hasura, Appwrite, and Glitchtip. Note that some applications may take several minutes to fully start up after initiation.Overview of coolLabs open-source projects
coolLabs provides a suite of open-source, self-hostable, and privacy-focused applications. Current projects include:
- Coolify (coolify.io): An open-source alternative to Heroku, Netlify, and Vercel.
- SafeTyper (safetyper.com): A privacy-centric alternative to Grammarly.
- Fonts (fonts.coollabs.io): A privacy-friendly drop-in replacement for Google Fonts.
- Images (images.coollabs.io): An open-source, self-hostable image optimization service that serves as a drop-in replacement for Vercel's Image Optimization.
Deploy a Node.js application using Coolify
v3Coolify supports deploying Node.js applications using thenode:ltsbase Docker image. Applications deployed via this configuration are served as standard NodeJS applications.Deploy Python applications using the base Docker image
v3Coolify supports Python applications using the official Python base image from Docker Hub.FROM pythonConfigure Git Sources in Coolify
v3Git Sources in Coolify define where application code is fetched from. They are used to set up helper apps (GitHub/GitLab Apps), manage access via tokens or SSH keys, clone application code, and configure webhooks for automated deployments. Coolify supports GitHub and GitLab, including their self-hosted and enterprise versions.Deploy PHP applications with Coolify
v3Coolify uses a PHP build pack that includes most necessary modules. It automatically determines the web server and dependency management based on the repository content:
- Web Server Selection: By default, Nginx is used. However, if a
.htaccessfile is detected in the root directory, Coolify switches to Apache to support custom rules. - Dependency Management: If a
composer.jsonfile is detected, Composer will automatically install all required dependencies. - Base Images: The deployment utilizes
webdevops/php-nginxorwebdevops/php-apacheas the base Docker images.
- Web Server Selection: By default, Nginx is used. However, if a
Understand Destinations in Coolify
v3Destinations in Coolify define the target environment where applications, databases, or services are deployed. Using destinations allows for network separation; resources deployed within the same destination/network can communicate with each other.Understand Coolify system architecture
v3Coolify is composed of several core components that manage the deployment and routing of resources:
- User Interface: A static SPA built with SvelteKit used for configuration and monitoring.
- API: A Fastify-based backend service that manages communication with remote resources, databases, and Docker Engines.
- HTTP Proxy: A dynamically configured Traefik instance that handles reverse proxy configurations, SSL certificate generation, and routing incoming HTTP traffic to containers.
- TCP Proxies: Separate Traefik instances used specifically for databases to proxy TCP connections from the internet.
- SSL Management: Integrated Let's Encrypt support for automated certificate generation.
Deploy Gatsby applications using Coolify's predefined configuration
v3Coolify provides a specialized Gatsby deployment option that uses thewebdevops/nginx:alpinebase Docker image. Unlike the genericstaticbuild pack, this predefined configuration automatically handles the necessary install commands, build commands, and publish directory settings, removing the need for manual configuration of these parameters.Deploy applications using Docker Compose build packs in Coolify
v3Coolify provides aDocker Composebuild pack that allows users to build and serve applications usingdocker-compose.yamlfiles. This is particularly useful for deploying services or applications that are not natively supported by other Coolify build packs, provided a valid Docker Compose configuration exists.