A general guide to configure your application with Coolify.
Application could be any type of web application. It could be a static site, a NodeJS application, a PHP application, etc.For complex applications, you can use Docker Compose based deployments or the one-click services.
General Configuration
Commands
You can overwrite the default commands by setting a custom value on the UI.
Build
Install
Start
If you leave it empty, Nixpacks will detect which commands to run. For
example, in Nodejs, it will check the lock files and run npm ci or yarn install or pnpm install accordingly.
Base Directory
It is useful for monorepos. You can set the base directory for all the commands that will be executed by Coolify.
Public Directory
If you are building a static site, it is important to set the public directory, so the builder will know which directory to serve.
Port Exposes
Port exposes are required for Docker Engine to know which ports to expose. The first port will be the default port for health checks.Examples:If you have a NodeJS application that listens on port 3000, you can set it like this: 3000.
If you have a PHP-FPM application that listens on port 9000, you can set it like this: 9000.
If you have a Nginx server that listens on port 80, you can set it like this: 80.
Port Mappings
You will lose some functionality if you map a port to the host system, like
Rolling Updates.
If you would like to map a port to the host system (server), you can do it here like this: 8080:80.This will map the port 8080 on the host system to the port 80 inside the container.
If you would like to get performance boost and you do not need any domain
(websocket server with VERY high traffic), you can map its port to the host,
so the request will not go through the proxy.
Advanced
Static Site (Is it a static site?)
This feature is only available for Nixpacks buildpacks.
If you need to serve a static site (SPA, HTML, etc), you can set this to true. It will be served by Nginx. Disabled by default.
Force HTTPS
If you would like to force HTTPS, so no HTTP connections allowed, you can set this to true. Enabled by default.
Auto Deploy
This feature is only available for GitHub App based repositories.
If you would like to deploy automatically when a new commit is pushed to the repository, you can set this to true. Enabled by default.
Preview Deployments
Preview deployments are a great way to test your application before merging it into the main branch. Imagine it like a staging environment.
URL Template
You can setup your preview URL with a custom template. Default is {{pr_id}}.{{domain}}.This means that if you open a Pull Request with the ID 123, and you resource domain is example.com the preview URL will be 123.example.com.
If you have several domains for your resource, the first will be used as the
{{ domain }} part.
Automated Preview Deployments
This feature is only available for GitHub App based repositories.
If you would like to deploy a preview version of your application (based on a Pull Requests), you can set this to true. Disabled by default.If set to true, all PR’s that are opened against the resource’s configured branch, will be deployed to a unique URL.
Manually Triggered Preview Deployments
You can manually deploy a Pull Request to a unique URL by clicking on the Deploy button on the Pull Request page.
Git Submodules
If you are using git submodules, you can set this to true. Enabled by default.
Git LFS
If you are using git lfs, you can set this to true. Enabled by default.
By default, all containers are checked for liveness.
Traefik Proxy won’t work if the container has health check defined, but it is
unhealthy. If you do not know how to set up health checks, turn it off.
Rollbacks
You can rollback to a previous version of your resource. At the moment, only local images are supported, so you can only rollback to a locally available docker image.
Resource Limits
By default, the container won’t have any resource limits. You can set the limits here. For more details, read the Docker documentation.
Deployment Types
There are several types of application deployments available.
Coolify uses Nixpacks as build pack by default. Nixpacks detect what kind of application are you trying to deploy and builds it accordingly.But if needed, you can customize it by adding a nixpacks.toml file to your repository or setting the right environment variables.For example, if you are using a NodeJS application, you can set the NIXPACKS_NODE_VERSION to control the NodeJS version.
Worth reading their documentation to understand
how it works.
Dockerfile
Dockerfile based build packs are useful if you have a custom dockerfile inside your Git repository.
Custom Dockerfile Location
You can always set your custom dockerfile location. By default, it is set to /Dockerfile.
Docker Image
You can deploy any docker images from any Docker compatible repository. For example, you can deploy images from Docker Hub, GitHub Container Registry, etc.
Docker Compose
Docker Compose based deployments are useful for complex applications. You can define multiple services in a single docker-compose.yml file and deploy them together.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Coolify Documentation","colors":{"primary":"#6B16ED","light":"#FCD34D","dark":"#6B16ED"},"favicon":"/logo/coolify.png","logo":null,"api":{"openapi":["/openapi.yaml"]},"background":{"decoration":null,"color":{"light":null,"dark":"#181818"}},"navbar":{"links":[{"label":"Home","href":"https://coolify.io"},{"label":"Support","href":"mailto:hi@coollabs.io"}],"primary":{"type":"button","label":"Cloud","href":"https://app.coolify.io"}},"seo":{"metatags":{"og:site_name":"Coolify","og:description":"Self-hosting with superpowers.","og:title":"Coolify Documentation","og:url":"https://coolify.io","og:locale":"en_US","og:image":"https://cdn.coollabs.io/assets/coolify/og-image-docs.png","twitter:title":"Coolify Documentation","twitter:description":"Self-hosting with superpowers.","twitter:url":"https://twitter.com/coolifyio","twitter:site":"@coolifyio"},"indexing":"all"},"footer":{"socials":{"twitter":"https://twitter.com/coolifyio","github":"https://github.com/coollabsio/coolify"}},"navigation":{"global":{"anchors":[{"anchor":"Community","href":"https://coolify.io/discord","icon":"discord"},{"anchor":"Sponsorship","href":"https://coolify.io/sponsorship","icon":"heart-pulse"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"coollabstechnologiesbt","hasAudioNarration":false,"actualSubdomain":"coollabstechnologiesbt","customDomains":[],"gitSource":{"type":"github","owner":"coollabsio","repo":"documentation-coolify-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":true},"entitlements":{},"buildId":"6ae91f3cdc2215c2063d5878:success","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"API","count":73},{"language":"default","tag":"API Reference","count":73},{"language":"default","tag":"Resources","count":58},{"language":"default","tag":"Knowledge Base","count":46},{"language":"default","tag":"Services","count":41},{"language":"default","tag":"Applications","count":29},{"language":"default","tag":"Databases","count":23},{"language":"default","tag":"General","count":12},{"language":"default","tag":"Documentation","count":9},{"language":"default","tag":"Get Started","count":9}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"knowledge-base/applications","slug":"/knowledge-base/applications","pageMetadata":{"title":"Applications","description":"A general guide to configure your application with Coolify.","og:title":"General Application Configurations with Coolify","href":"/knowledge-base/applications"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"A general guide to configure your application with Coolify.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,h5:`h5`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Application could be any type of web application. It could be a static site, a NodeJS application, a PHP application, etc.`}),`\n`,_jsx(_components.p,{children:`For complex applications, you can use Docker Compose based deployments or the one-click services.`}),`\n`,_jsx(Heading,{level:`2`,id:`general-configuration`,children:`General Configuration`}),`\n`,_jsx(Heading,{level:`3`,id:`commands`,children:`Commands`}),`\n`,_jsx(_components.p,{children:`You can overwrite the default commands by setting a custom value on the UI.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Build`}),`\n`,_jsx(_components.li,{children:`Install`}),`\n`,_jsx(_components.li,{children:`Start`}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you leave it empty, Nixpacks will detect which commands to run. For\nexample, in Nodejs, it will check the lock files and run `,_jsx(_components.code,{children:`npm ci`}),` or `,_jsx(_components.code,{children:`yarn install`}),` or `,_jsx(_components.code,{children:`pnpm install`}),` accordingly.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`base-directory`,children:`Base Directory`}),`\n`,_jsx(_components.p,{children:`It is useful for monorepos. You can set the base directory for all the commands that will be executed by Coolify.`}),`\n`,_jsx(Heading,{level:`3`,id:`public-directory`,children:`Public Directory`}),`\n`,_jsx(_components.p,{children:`If you are building a static site, it is important to set the public directory, so the builder will know which directory to serve.`}),`\n`,_jsx(Heading,{level:`3`,id:`port-exposes`,children:`Port Exposes`}),`\n`,_jsx(_components.p,{children:`Port exposes are required for Docker Engine to know which ports to expose. The first port will be the default port for health checks.`}),`\n`,_jsx(_components.p,{children:`Examples:`}),`\n`,_jsxs(_components.p,{children:[`If you have a NodeJS application that listens on port 3000, you can set it like this: `,_jsx(_components.code,{children:`3000`}),`.\nIf you have a PHP-FPM application that listens on port 9000, you can set it like this: `,_jsx(_components.code,{children:`9000`}),`.\nIf you have a Nginx server that listens on port 80, you can set it like this: `,_jsx(_components.code,{children:`80`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`port-mappings`,children:`Port Mappings`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`You will lose some functionality if you map a port to the host system, like\n`,_jsx(_components.code,{children:`Rolling Updates`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`If you would like to map a port to the host system (server), you can do it here like this: `,_jsx(_components.code,{children:`8080:80`}),`.`]}),`\n`,_jsx(_components.p,{children:`This will map the port 8080 on the host system to the port 80 inside the container.`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`If you would like to get performance boost and you do not need any domain\n(websocket server with VERY high traffic), you can map its port to the host,\nso the request will not go through the proxy.`})}),`\n`,_jsx(Heading,{level:`3`,id:`advanced`,children:`Advanced`}),`\n`,_jsx(Heading,{level:`4`,id:`static-site-is-it-a-static-site`,children:`Static Site (Is it a static site?)`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`This feature is only available for Nixpacks buildpacks.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you need to serve a static site (SPA, HTML, etc), you can set this to `,_jsx(_components.code,{children:`true`}),`. It will be served by Nginx. `,_jsx(_components.code,{children:`Disabled by default`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`force-https`,children:`Force HTTPS`}),`\n`,_jsxs(_components.p,{children:[`If you would like to force HTTPS, so no HTTP connections allowed, you can set this to `,_jsx(_components.code,{children:`true`}),`. `,_jsx(_components.code,{children:`Enabled by default`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`auto-deploy`,children:`Auto Deploy`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`This feature is only available for GitHub App based repositories.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you would like to deploy automatically when a new commit is pushed to the repository, you can set this to `,_jsx(_components.code,{children:`true`}),`. `,_jsx(_components.code,{children:`Enabled by default`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`preview-deployments`,children:`Preview Deployments`}),`\n`,_jsx(_components.p,{children:`Preview deployments are a great way to test your application before merging it into the main branch. Imagine it like a staging environment.`}),`\n`,_jsx(_components.h5,{children:`URL Template`}),`\n`,_jsxs(_components.p,{children:[`You can setup your preview URL with a custom template. Default is `,_jsx(`span`,{\"v-pre\":true,children:_jsx(_components.code,{children:`{{pr_id}}.{{domain}}`})}),`.`]}),`\n`,_jsxs(_components.p,{children:[`This means that if you open a Pull Request with the ID `,_jsx(_components.code,{children:`123`}),`, and you resource domain is `,_jsx(_components.code,{children:`example.com`}),` the preview URL will be `,_jsx(_components.code,{children:`123.example.com`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you have several domains for your resource, the first will be used as the`,` `,`\n`,_jsx(`span`,{\"v-pre\":true,children:_jsx(_components.code,{children:`{{ domain }}`})}),` part.`]})}),`\n`,_jsx(_components.h5,{children:`Automated Preview Deployments`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`This feature is only available for GitHub App based repositories.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you would like to deploy a preview version of your application (based on a Pull Requests), you can set this to `,_jsx(_components.code,{children:`true`}),`. `,_jsx(_components.code,{children:`Disabled by default`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`If set to `,_jsx(_components.code,{children:`true`}),`, all PR’s that are opened against the resource’s configured branch, will be deployed to a unique URL.`]}),`\n`,_jsx(_components.h5,{children:`Manually Triggered Preview Deployments`}),`\n`,_jsxs(_components.p,{children:[`You can manually deploy a Pull Request to a unique URL by clicking on the `,_jsx(_components.code,{children:`Deploy`}),` button on the Pull Request page.`]}),`\n`,_jsx(Heading,{level:`4`,id:`git-submodules`,children:`Git Submodules`}),`\n`,_jsxs(_components.p,{children:[`If you are using git submodules, you can set this to `,_jsx(_components.code,{children:`true`}),`. `,_jsx(_components.code,{children:`Enabled by default`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`git-lfs`,children:`Git LFS`}),`\n`,_jsxs(_components.p,{children:[`If you are using git lfs, you can set this to `,_jsx(_components.code,{children:`true`}),`. `,_jsx(_components.code,{children:`Enabled by default`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`environment-variables`,children:`Environment Variables`}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`/knowledge-base/environment-variables`,children:`Read here`})}),`\n`,_jsx(Heading,{level:`3`,id:`persistent-storage`,children:`Persistent Storage`}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`/knowledge-base/persistent-storage`,children:`Read here`})}),`\n`,_jsx(Heading,{level:`3`,id:`health-checks`,children:`Health Checks`}),`\n`,_jsx(_components.p,{children:`By default, all containers are checked for liveness.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Traefik Proxy won’t work if the container has health check defined, but it is\n`,_jsx(_components.code,{children:`unhealthy`}),`. If you do not know how to set up health checks, turn it off.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`rollbacks`,children:`Rollbacks`}),`\n`,_jsx(_components.p,{children:`You can rollback to a previous version of your resource. At the moment, only local images are supported, so you can only rollback to a locally available docker image.`}),`\n`,_jsx(Heading,{level:`3`,id:`resource-limits`,children:`Resource Limits`}),`\n`,_jsxs(_components.p,{children:[`By default, the container won’t have any resource limits. You can set the limits here. For more details, read the `,_jsx(_components.a,{href:`https://docs.docker.com/compose/compose-file/compose-file-v2/#cpu_count-cpu_percent-cpu_shares-cpu_period-cpu_quota-cpus-cpuset-domainname-hostname-ipc-mac_address-mem_limit-memswap_limit-mem_swappiness-mem_reservation-oom_kill_disable-oom_score_adj-privileged-read_only-shm_size-stdin_open-tty-user-working_dir`,children:`Docker documentation`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`deployment-types`,children:`Deployment Types`}),`\n`,_jsx(_components.p,{children:`There are several types of application deployments available.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Public Git Repository`}),`\n`,_jsxs(_components.li,{children:[`Private Git Repository (`,_jsx(_components.a,{href:`https://docs.github.com/en/apps/using-github-apps/about-using-github-apps`,children:`GitHub App`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Private Git Repository (`,_jsx(_components.a,{href:`https://docs.github.com/en/authentication/connecting-to-github-with-ssh/managing-deploy-keys`,children:`Deploy Key`}),`)`]}),`\n`,_jsx(_components.li,{children:`Based on a Dockerfile`}),`\n`,_jsx(_components.li,{children:`Based on a Docker Compose`}),`\n`,_jsx(_components.li,{children:`Based on a Docker Image`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`build-packs`,children:`Build Packs`}),`\n`,_jsx(_components.p,{children:`These are the supported build packs:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Nixpacks`}),`\n`,_jsx(_components.li,{children:`Dockerfile`}),`\n`,_jsx(_components.li,{children:`Docker Image`}),`\n`,_jsx(_components.li,{children:`Docker Compose`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`nixpacks`,children:`Nixpacks`}),`\n`,_jsxs(_components.p,{children:[`Coolify uses `,_jsx(_components.a,{href:`https://nixpacks.com`,children:`Nixpacks`}),` as build pack by default. Nixpacks detect what kind of application are you trying to deploy and builds it accordingly.`]}),`\n`,_jsxs(_components.p,{children:[`But if needed, you can customize it by adding a `,_jsx(_components.code,{children:`nixpacks.toml`}),` file to your repository or setting the right environment variables.`]}),`\n`,_jsxs(_components.p,{children:[`For example, if you are using a NodeJS application, you can set the `,_jsx(_components.code,{children:`NIXPACKS_NODE_VERSION`}),` to control the NodeJS version.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Worth reading their `,_jsx(_components.a,{href:`https://nixpacks.com/docs`,children:`documentation`}),` to understand\nhow it works.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`dockerfile`,children:`Dockerfile`}),`\n`,_jsx(_components.p,{children:`Dockerfile based build packs are useful if you have a custom dockerfile inside your Git repository.`}),`\n`,_jsx(Heading,{level:`4`,id:`custom-dockerfile-location`,children:`Custom Dockerfile Location`}),`\n`,_jsxs(_components.p,{children:[`You can always set your custom dockerfile location. By default, it is set to `,_jsx(_components.code,{children:`/Dockerfile`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`docker-image`,children:`Docker Image`}),`\n`,_jsx(_components.p,{children:`You can deploy any docker images from any Docker compatible repository. For example, you can deploy images from Docker Hub, GitHub Container Registry, etc.`}),`\n`,_jsx(Heading,{level:`3`,id:`docker-compose`,children:`Docker Compose`}),`\n`,_jsxs(_components.p,{children:[`Docker Compose based deployments are useful for complex applications. You can define multiple services in a single `,_jsx(_components.code,{children:`docker-compose.yml`}),` file and deploy them together.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/resources/applications/`,children:`Languages/Frameworks`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/resources/services/`,children:`Services`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Applications","description":"A general guide to configure your application with Coolify.","og:title":"General Application Configurations with Coolify","href":"/knowledge-base/applications"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"General Configuration","slug":"general-configuration","depth":2,"children":[{"title":"Commands","slug":"commands","depth":3,"children":[]},{"title":"Base Directory","slug":"base-directory","depth":3,"children":[]},{"title":"Public Directory","slug":"public-directory","depth":3,"children":[]},{"title":"Port Exposes","slug":"port-exposes","depth":3,"children":[]},{"title":"Port Mappings","slug":"port-mappings","depth":3,"children":[]},{"title":"Advanced","slug":"advanced","depth":3,"children":[]},{"title":"Static Site (Is it a static site?)","slug":"static-site-is-it-a-static-site","depth":4,"children":[]},{"title":"Force HTTPS","slug":"force-https","depth":4,"children":[]},{"title":"Auto Deploy","slug":"auto-deploy","depth":4,"children":[]},{"title":"Preview Deployments","slug":"preview-deployments","depth":4,"children":[]},{"title":"Git Submodules","slug":"git-submodules","depth":4,"children":[]},{"title":"Git LFS","slug":"git-lfs","depth":4,"children":[]},{"title":"Environment Variables","slug":"environment-variables","depth":4,"children":[]},{"title":"Persistent Storage","slug":"persistent-storage","depth":3,"children":[]},{"title":"Health Checks","slug":"health-checks","depth":3,"children":[]},{"title":"Rollbacks","slug":"rollbacks","depth":3,"children":[]},{"title":"Resource Limits","slug":"resource-limits","depth":3,"children":[]}]},{"title":"Deployment Types","slug":"deployment-types","depth":2,"children":[]},{"title":"Build Packs","slug":"build-packs","depth":2,"children":[{"title":"Nixpacks","slug":"nixpacks","depth":3,"children":[]},{"title":"Dockerfile","slug":"dockerfile","depth":3,"children":[]},{"title":"Custom Dockerfile Location","slug":"custom-dockerfile-location","depth":4,"children":[]},{"title":"Docker Image","slug":"docker-image","depth":3,"children":[]},{"title":"Docker Compose","slug":"docker-compose","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"coollabstechnologiesbt","siteName":"Coolify Documentation","title":"General Application Configurations with Coolify","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"knowledge-base/applications.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"A general guide to configure your application with Coolify.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"General Application Configurations with Coolify\">\u003cmeta data-mint-head property=\"og:description\" content=\"Self-hosting with superpowers.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Coolify\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Self-hosting with superpowers.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6B16ED\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"twitter:url\" content=\"https://twitter.com/coolifyio\">\u003clink data-mint-head rel=\"canonical\" href=\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/knowledge-base/applications.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\",\"name\":\"Coolify Documentation\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev\"},{\"@type\":\"WebSite\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\",\"name\":\"Coolify Documentation\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs\",\"publisher\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications#webpage\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications\",\"name\":\"Applications\",\"description\":\"A general guide to configure your application with Coolify.\",\"isPartOf\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Coolify Documentation\",\"item\":\"https://coollabstechnologiesbt.mintlify.dev/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Applications\",\"item\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications#article\",\"headline\":\"Applications\",\"name\":\"Applications\",\"description\":\"A general guide to configure your application with Coolify.\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications\",\"mainEntityOfPage\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/applications#webpage\"},\"image\":\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\",\"publisher\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Coolify Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Coolify Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/knowledge-base/applications.md","siteName":"Coolify Documentation","nav":{"global":{"anchors":[{"anchor":"Community","href":"https://coolify.io/discord","icon":"discord"},{"anchor":"Sponsorship","href":"https://coolify.io/sponsorship","icon":"heart-pulse"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Knowledge Base","groups":[{"group":"General","pages":[{"title":"FAQ","href":"/knowledge-base/faq"},{"title":"Health checks","href":"/knowledge-base/healthchecks"},{"title":"Domains","href":"/knowledge-base/domains"},{"title":"Monitoring","href":"/knowledge-base/monitoring"},{"title":"Environment Variables","href":"/knowledge-base/environment-variables"},{"title":"Persistent Storage","href":"/knowledge-base/persistent-storage"},{"title":"Database Backups","href":"/knowledge-base/backups"},{"title":"DNS Configuration","href":"/knowledge-base/dns-configuration"},{"title":"Drain Logs","href":"/knowledge-base/drain-logs"},{"title":"Commands","href":"/knowledge-base/commands"},{"title":"Add a service","href":"/knowledge-base/add-a-service"},{"title":"Instance Updates","description":"An overview of the update settings for Coolify.","href":"/knowledge-base/instance-updates"}]},{"group":"Resources","pages":[{"title":"Applications","href":"/knowledge-base/applications"},{"title":"Databases","description":"Here you can find the documentation for databases in Coolify.","href":"/knowledge-base/databases"}]},{"group":"How-tos","pages":[{"title":"Load Balancing on Hetzner","href":"/knowledge-base/how-to/hetzner-loadbalancing"}]},{"group":"Administration (Self-hosted)","pages":[{"title":"Delete User","href":"/knowledge-base/self-hosted-admin/delete-user"}]},{"group":"Git","pages":[{"group":"GitHub","pages":[{"title":"Integration","href":"/knowledge-base/git/github/integration"},{"title":"GitHub Actions","href":"/knowledge-base/git/github/github-actions"}]},{"group":"Gitlab","pages":[{"title":"Integration","href":"/knowledge-base/git/gitlab/integration"}]},{"group":"Bitbucket","pages":[{"title":"Integration","href":"/knowledge-base/git/bitbucket/integration"}]},{"group":"Gitea","pages":[{"title":"Integration","href":"/knowledge-base/git/gitea/integration"}]}]},{"group":"Server","pages":[{"title":"Introduction","href":"/knowledge-base/server/introduction"},{"title":"Firewall","href":"/knowledge-base/server/firewall"},{"title":"Build Server","href":"/knowledge-base/server/build-server"},{"title":"Multiple Servers","href":"/knowledge-base/server/multiple-servers"},{"title":"OpenSSH","href":"/knowledge-base/server/openssh"},{"title":"Oracle Cloud","href":"/knowledge-base/server/oracle-cloud"},{"title":"Supported Proxy","href":"/knowledge-base/server/proxies"},{"title":"Automated Cleanup","href":"/knowledge-base/server/automated-cleanup"},{"title":"Non-root user","href":"/knowledge-base/server/non-root-user"}]},{"group":"S3","pages":[{"title":"Introduction","href":"/knowledge-base/s3/index"},{"title":"AWS S3","href":"/knowledge-base/s3/aws"},{"title":"Cloudflare R2","href":"/knowledge-base/s3/r2"}]},{"group":"Docker","pages":[{"title":"Docker Swarm","href":"/knowledge-base/docker/swarm"},{"title":"Docker Registry","href":"/knowledge-base/docker/registry"},{"title":"Docker Compose","href":"/knowledge-base/docker/compose"},{"title":"Custom Commands","href":"/knowledge-base/docker/custom-commands"}]},{"group":"Cloudflare","pages":[{"title":"Cloudflare Tunnels","href":"/knowledge-base/cloudflare/tunnels"}]},{"group":"Traefik","pages":[{"title":"Healthcheck","href":"/knowledge-base/traefik/healthcheck"},{"title":"BasicAuth Middleware","href":"/knowledge-base/traefik/basic-auth"},{"title":"Enable Dashboard","href":"/knowledge-base/traefik/dashboard"},{"title":"Dynamic Configurations","href":"/knowledge-base/traefik/dynamic-configurations"},{"title":"Custom SSL Certificates","href":"/knowledge-base/traefik/custom-ssl-certs"},{"title":"Load-balancing","href":"/knowledge-base/traefik/load-balancing"},{"title":"Redirects","href":"/knowledge-base/traefik/redirects"},{"title":"Wildcard SSL Certificates","href":"/knowledge-base/traefik/wildcard-certificates"}]}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources"}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/introduction"}]}]},"basePath":"","title":"General Application Configurations with Coolify","deploymentId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","buildId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","dynamics":[],"chunks":[]}