Skip to content

Commit aa642ca

Browse files
authored
feat: enable automatic external link icons (#410)
1 parent 0569c5f commit aa642ca

File tree

207 files changed

+1268
-1184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+1268
-1184
lines changed

docs/.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export default defineConfig({
6262
],
6363
themeConfig: {
6464
// https://vitepress.dev/reference/default-theme-config
65+
externalLinkIcon: true,
6566
carbonAds: {
6667
code: 'CW7IPKJJ',
6768
placement: 'coolifyio'

docs/builds/introduction.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,37 @@ description: Deploy applications as Docker containers with Coolify using build p
77

88
<br />
99

10-
Coolify deploys all applications as Docker containers. This means your app, database, or website runs inside a container.
10+
Coolify deploys all applications as Docker containers. This means your app, database, or website runs inside a container.
1111

1212
No matter what you deploy or which build pack you use, it is always run as a Docker container.
1313

14-
1514
## How Docker Containers Work
16-
- **Docker Image:** To run a container, you need a Docker image.
17-
- **Dockerfile:** The image is built using a Dockerfile, just a file with step-by-step instructions to build the docker image.
18-
- **Build Process:** If you're building your own application, you'll need to create your docker image using a Dockerfile.
19-
- Coolify helps with this build process by letting you use different build packs. A commonly used build pack is [Nixpacks ↗](https://nixpacks.com?utm_source=coolify.io), which automatically prepares a Dockerfile and builds the docker image for you.
2015

16+
- **Docker Image:** To run a container, you need a Docker image.
17+
- **Dockerfile:** The image is built using a Dockerfile, just a file with step-by-step instructions to build the docker image.
18+
- **Build Process:** If you're building your own application, you'll need to create your docker image using a Dockerfile.
19+
- Coolify helps with this build process by letting you use different build packs. A commonly used build pack is [Nixpacks](https://nixpacks.com?utm_source=coolify.io), which automatically prepares a Dockerfile and builds the docker image for you.
2120

2221
## Build Packs in Coolify
23-
Coolify offers build packs like [Nixpack ↗](https://nixpacks.com?utm_source=coolify.io) and **Static Build Pack** that automatically create your Docker image.
2422

25-
If you need more control over the process, you can write your own Dockerfile and Docker Compose file. In that case, Coolify will use your file to build the image on the server and deploy it as a container.
23+
Coolify offers build packs like [Nixpack](https://nixpacks.com?utm_source=coolify.io) and **Static Build Pack** that automatically create your Docker image.
2624

25+
If you need more control over the process, you can write your own Dockerfile and Docker Compose file. In that case, Coolify will use your file to build the image on the server and deploy it as a container.
2726

2827
## Using Pre-built Images
29-
If you already have a Docker image stored in a registry (for example, [Docker Hub ↗](https://hub.docker.com/?utm_source=coolify.io) or [GitHub Container Registry ↗](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry?utm_source=coolify.io)), you can use that image directly in Coolify. This means you do not have to rebuild the image on your server.
3028

29+
If you already have a Docker image stored in a registry (for example, [Docker Hub](https://hub.docker.com/?utm_source=coolify.io) or [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry?utm_source=coolify.io)), you can use that image directly in Coolify. This means you do not have to rebuild the image on your server.
3130

32-
## Managing Build Resources
33-
Building Docker images can consume a lot of resources on your server, potentially causing it to crash.
31+
## Managing Build Resources
3432

35-
To reduce the load on your main server, Coolify allows you to connect additional servers to manage the build process.
33+
Building Docker images can consume a lot of resources on your server, potentially causing it to crash.
3634

37-
You can set up a separate [build server](/builds/servers) to handle the builds, or use external tools like [GitHub Actions ↗](https://github.com/features/actions?utm_source=coolify.io) to build your images and push them to any container registry.
35+
To reduce the load on your main server, Coolify allows you to connect additional servers to manage the build process.
3836

39-
Once the images are pushed, you can easily use them on Coolify.
37+
You can set up a separate [build server](/builds/servers) to handle the builds, or use external tools like [GitHub Actions](https://github.com/features/actions?utm_source=coolify.io) to build your images and push them to any container registry.
4038

39+
Once the images are pushed, you can easily use them on Coolify.
4140

4241
## What's Next?
42+
4343
Check the pages in the sidebar to learn more about build packs, build commands, and build servers.

docs/builds/packs/docker-compose.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ On the Coolify dashboard, open your project and click the **Create New Resource*
2424

2525
**A.** If your Git repository is public, choose the **Public Repository** option.
2626

27-
**B.** If your repository is private, you can select **Github App** or **Deploy Key**. (These methods require extra configuration. You can check the guides on setting up a [Github App](/knowledge-base/git/github/integration#with-github-app-recommended) or [Deploy Key](/knowledge-base/git/github/integration#with-deploy-keys) if needed.)
27+
**B.** If your repository is private, you can select **Github App** or **Deploy Key**. (These methods require extra configuration. You can check the guides on setting up a [Github App](/knowledge-base/git/github/integration#with-github-app-recommended) or [Deploy Key](/knowledge-base/git/github/integration#with-deploy-keys) if needed.)
2828

2929
### 3. Select Your Git Repository
3030

docs/builds/packs/dockerfile.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,84 +7,86 @@ description: Build Docker images from your custom Dockerfile with Coolify suppor
77

88
<br />
99

10-
Dockerfile includes step-by-step instructions to build a Docker image that Coolify uses to deploy your application or website.
10+
Dockerfile includes step-by-step instructions to build a Docker image that Coolify uses to deploy your application or website.
1111

1212
The Dockerfile build pack allows you to use your own Dockerfile to deploy your application, you have complete control over how your application is built and deployed on Coolify.
1313

14-
1514
## How to use Dockerfile?
15+
1616
### 1. Create a New Resource in Coolify
17+
1718
On the Coolify dashboard, open your project and click the **Create New Resource** button.
1819

1920
<ZoomableImage src="/docs/images/builds/packs/dockerfile/1.webp" alt="Coolify dashboard screenshot" />
2021

21-
2222
### 2. Choose Your Deployment Option
2323

2424
<ZoomableImage src="/docs/images/builds/packs/dockerfile/2.webp" alt="Coolify dashboard screenshot" />
2525

2626
**A.** If your Git repository is public, choose the **Public Repository** option.
2727

28-
**B.** If your repository is private, you can select **Github App** or **Deploy Key**. (These methods require extra configuration. You can check the guides on setting up a [Github App ↗](/knowledge-base/git/github/integration#with-github-app-recommended) or [Deploy Key ↗](/knowledge-base/git/github/integration#with-deploy-keys) if needed.)
29-
28+
**B.** If your repository is private, you can select **Github App** or **Deploy Key**. (These methods require extra configuration. You can check the guides on setting up a [Github App](/knowledge-base/git/github/integration#with-github-app-recommended) or [Deploy Key](/knowledge-base/git/github/integration#with-deploy-keys) if needed.)
3029

3130
### 3. Select Your Git Repository
31+
3232
If you are using a public repository, paste the URL of your GitHub repository when prompted. The steps are very similar for all other options.
3333

3434
<ZoomableImage src="/docs/images/builds/packs/dockerfile/3.webp" alt="Coolify dashboard screenshot" />
3535

36-
3736
### 4. Choose the Build Pack
37+
3838
Coolify defaults to using Nixpacks. Click the Nixpacks option and select **Dockerfile** as your build pack from the dropdown menu.
3939

4040
<ZoomableImage src="/docs/images/builds/packs/dockerfile/4.webp" alt="Coolify dashboard screenshot" />
4141

42-
4342
### 5. Configure the Build Pack
43+
4444
<ZoomableImage src="/docs/images/builds/packs/dockerfile/5.webp" alt="Coolify dashboard screenshot" />
4545

4646
- **Branch:** Coolify will automatically detect the branch in your repository.
4747
- **Base Directory:** Enter the directory that Coolify should use as the root. Use `/` if your files are at the root or specify a subfolder (like `/backend` for a monorepo).
4848

4949
Click on **Continue** button once you have set all the above settings to correct details.
5050

51-
5251
### 6. Configure Network Settings
53-
After clicking **Continue**, update settings like your domain and environment variables (if needed).
52+
53+
After clicking **Continue**, update settings like your domain and environment variables (if needed).
5454

5555
The important option is the port where your application runs.
5656
Coolify sets the default port to 3000, so if your application listens on a different port, update the port number on the network section.
5757

5858
<ZoomableImage src="/docs/images/builds/packs/dockerfile/6.webp" alt="Coolify dashboard screenshot" />
5959

60-
6160
## Advanced Configuration
61+
6262
### Environment Variables
63-
You can manage your environment variables from the Coolify UI.
63+
64+
You can manage your environment variables from the Coolify UI.
6465

6566
Click on the **Environment Variables** tab to add or update them.
6667

6768
<ZoomableImage src="/docs/images/builds/packs/dockerfile/7.webp" alt="Coolify dashboard screenshot" />
6869

6970
### Pre/Post Deployment Commands
71+
7072
<ZoomableImage src="/docs/images/builds/packs/dockerfile/8.webp" alt="Coolify dashboard screenshot" />
7173
- **Pre-deployment:** Optionally, specify a script or command to execute in the existing container before deployment begins. This command is run with `sh -c`, so you do not need to add it manually.
7274
- **Post-deployment:** Optionally, specify a script or command to execute in the newly built container after deployment completes. This command is also executed with `sh -c`.
7375

74-
7576
## Known Issues and Solutions
77+
7678
::: details 1. Visiting the Application Domain Shows "No Available Server"
77-
If you see a "No Available Server" error when visiting your website, it is likely due to the health check for your container.
79+
If you see a "No Available Server" error when visiting your website, it is likely due to the health check for your container.
7880

79-
Run `docker ps` on your server terminal to check if your container is unhealthy or still starting.
81+
Run `docker ps` on your server terminal to check if your container is unhealthy or still starting.
8082

8183
To resolve this, fix the issue causing the container to be unhealthy or remove the health checks.
8284
:::
8385

8486
::: details 2. App only works inside the Container
85-
If your app works when you check it with a `curl localhost` inside the container but you receive a 404 or "No Available Server" error when accessing your domain, verify the port settings.
87+
If your app works when you check it with a `curl localhost` inside the container but you receive a 404 or "No Available Server" error when accessing your domain, verify the port settings.
8688

87-
Make sure that the port in the network settings matches the port where your application is listening. Also, check the startup log to ensure the application is not only listening on localhost.
89+
Make sure that the port in the network settings matches the port where your application is listening. Also, check the startup log to ensure the application is not only listening on localhost.
8890

8991
<ZoomableImage src="/docs/images/builds/packs/dockerfile/9.webp" alt="Coolify dashboard screenshot" />
9092

docs/builds/packs/nixpacks.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,47 +14,52 @@ Nixpacks checks your git repository (also called as "**source directory**" in ni
1414
Nixpacks can deploy both fully static websites and non-static applications. Once your repository is set up, you can use Coolify to deploy your project with ease.
1515

1616
## How to use Nixpacks?
17+
1718
On Coolify you can only use Nixpacks on git-based deployments.
1819

1920
### 1. Create a New Resource in Coolify
21+
2022
On Coolify dashboard open your project and click the **Create New Resource** button.
2123

2224
<ZoomableImage src="/docs/images/builds/packs/nixpacks/1.webp" alt="Coolify dashboard screenshot" />
2325

24-
2526
### 2. Choose Your Deployment Option
2627

2728
<ZoomableImage src="/docs/images/builds/packs/nixpacks/2.webp" alt="Coolify dashboard screenshot" />
2829

2930
**A.** If your Git repository is public, choose the **Public Repository** option.
3031

31-
**B.** If your repository is private, you can select **Github App** or **Deploy Key**. (These methods require extra configuration. You can check the guides on setting up a [Github App ↗](/knowledge-base/git/github/integration#with-github-app-recommended) or [Deploy Key ↗](/knowledge-base/git/github/integration#with-deploy-keys) if needed.)
32-
32+
**B.** If your repository is private, you can select **Github App** or **Deploy Key**. (These methods require extra configuration. You can check the guides on setting up a [Github App](/knowledge-base/git/github/integration#with-github-app-recommended) or [Deploy Key](/knowledge-base/git/github/integration#with-deploy-keys) if needed.)
3333

3434
### 3. Select Your Git Repository
35+
3536
If you are using a public repository, paste the URL of your GitHub repository when prompted. The steps are very similar for all other options.
3637

3738
<ZoomableImage src="/docs/images/builds/packs/nixpacks/3.webp" alt="Coolify dashboard screenshot" />
3839

39-
4040
### 4. Choose the Build Pack
41+
4142
Coolify will default to using Nixpacks. If it doesn’t, click to select Nixpacks as your build pack.
4243

4344
<ZoomableImage src="/docs/images/builds/packs/nixpacks/4.webp" alt="Coolify dashboard screenshot" />
4445

4546
### 5. Configure Build Pack
47+
4648
We have different options like Base Directory, Publish Directory, and Ports that slightly change based on the application you deploy (static websites/applications). So, below we have two sections for the deployments possible with Nixpacks.
49+
4750
- [How to deploy Fully Static Websites](#how-to-deploy-fully-static-website)
4851
- [How to deploy Non-Static Website/Applications](#how-to-deploy-non-static-website-applications)
4952

5053
## How to deploy Fully Static Website?
54+
5155
First, follow the previous section in this documentation: [How to use Nixpacks](#how-to-use-nixpacks). After that, proceed with the steps below.
5256

5357
<ZoomableImage src="/docs/images/builds/packs/nixpacks/5.webp" alt="Coolify dashboard screenshot" />
5458

5559
1. **Branch:** Coolify will automatically detect the branch from your Repostiory.
5660

5761
2. **Base Directory:** Enter the directory Nixpacks should use as the root (for example, `/` if your files are at the root, or a subfolder if applicable).
62+
5863
- If you have a monorepo then you can enter the path of the directory you want to use as base directory (`/backend` for example)
5964

6065
3. **Is it a static Site?:** Click on this option to enable static mode.
@@ -69,38 +74,36 @@ First, follow the previous section in this documentation: [How to use Nixpacks](
6974

7075
<ZoomableImage src="/docs/images/builds/packs/nixpacks/6.webp" alt="Coolify dashboard screenshot" />
7176

72-
- As of Coolify **v4.0.0-beta.404**, the only web server option available is [Nginx](https://nginx.org/en/?utm_source=coolify.io). So **Nginx** will be selected by default.
77+
- As of Coolify **v4.0.0-beta.404**, the only web server option available is [Nginx](https://nginx.org/en/?utm_source=coolify.io). So **Nginx** will be selected by default.
7378

7479
8. Click the **Deploy** button. The deployment process is usually quick (often less than a minute, depending on your server).
7580

76-
7781
9. Customize Your Web Server Configuration <Badge type="warning" text="Optional" />
7882

7983
<ZoomableImage src="/docs/images/builds/packs/nixpacks/7.webp" alt="Coolify dashboard screenshot" />
8084

81-
- Coolify provides a default web server configuration that works for most cases.
85+
- Coolify provides a default web server configuration that works for most cases.
8286

8387
- If you want to change it then click the **Generate** button to load the default settings and make any changes you need.
8488

85-
8689
::: warning HEADS UP!
8790
You have to click on the **Restart** button for the new configuration to take effect.
8891
:::
8992

90-
9193
### How this works?
92-
Nixpacks will build the website using your codebase and create a Docker image with a web server to serve them. This means your final Docker image has a web server ready to serve your HTML, CSS, and JavaScript files.
93-
9494

95+
Nixpacks will build the website using your codebase and create a Docker image with a web server to serve them. This means your final Docker image has a web server ready to serve your HTML, CSS, and JavaScript files.
9596

9697
## How to deploy Non-Static Website/Applications?
98+
9799
First, follow the previous section in this documentation: [How to use Nixpacks](#how-to-use-nixpacks). After that, proceed with the steps below.
98100

99101
<ZoomableImage src="/docs/images/builds/packs/nixpacks/8.webp" alt="Coolify dashboard screenshot" />
100102

101103
1. **Branch:** Coolify will automatically detect the branch from your Repostiory.
102104

103105
2. **Base Directory:** Enter the directory Nixpacks should use as the root (for example, `/` if your files are at the root, or a subfolder if applicable).
106+
104107
- If you have a monorepo then you can enter the path of the directory you want to use as base directory (`/backend` for example)
105108

106109
3. **Port:** Enter the port where your application listens for incoming requests.
@@ -111,14 +114,15 @@ First, follow the previous section in this documentation: [How to use Nixpacks](
111114

112115
6. After clicking the **Continue** button, you can adjust settings like your domain and environment variables, then click the **Deploy** button to launch your application.
113116

114-
115117
### How this works?
116-
Nixpacks analyzes your codebase, builds a Docker image, and then starts a container using that image.
117118

119+
Nixpacks analyzes your codebase, builds a Docker image, and then starts a container using that image.
118120

119121
## Advanced Configuration
122+
120123
### Environment Variables
121-
You can customize Nixpacks' behavior using environment variables. There are many variables available for different application frameworks, and you can find detailed information in their documentation: [Nixpacks Environment Variables](https://nixpacks.com/docs/configuration/environment?utm_source=coolify.io).
124+
125+
You can customize Nixpacks' behavior using environment variables. There are many variables available for different application frameworks, and you can find detailed information in their documentation: [Nixpacks Environment Variables](https://nixpacks.com/docs/configuration/environment?utm_source=coolify.io).
122126

123127
To add or modify environment variables in Coolify, simply click on the **Environment Variables** tab, where you can manage them easily.
124128

@@ -127,6 +131,7 @@ To add or modify environment variables in Coolify, simply click on the **Environ
127131
---
128132

129133
### Commands
134+
130135
If needed, you can override the default install, build, and start commands. Simply scroll down to the build section on Coolify and input your custom commands.
131136

132137
<ZoomableImage src="/docs/images/builds/packs/nixpacks/10.webp" alt="Coolify dashboard screenshot" />
@@ -138,12 +143,13 @@ You may need to include a `nixpacks.toml` file in your repository for these chan
138143
---
139144

140145
### Configuration file
141-
Nixpacks supports specifying build configurations in a nixpacks.toml or nixpacks.json file. If one of these files is present in the root of your repository, it will be automatically used. For more details, refer to the [Nixpacks documentation](https://nixpacks.com/docs/configuration/file?utm_source=coolify.io).
142146

147+
Nixpacks supports specifying build configurations in a nixpacks.toml or nixpacks.json file. If one of these files is present in the root of your repository, it will be automatically used. For more details, refer to the [Nixpacks documentation](https://nixpacks.com/docs/configuration/file?utm_source=coolify.io).
143148

144149
## Known issues and solutions
150+
145151
::: details 1. Outdated Packages/Dependencies
146152
Sometimes, Nixpacks may use older package versions. If you encounter this issue, update the `nixpkgs` archive version in your `nixpacks.toml` file. You can learn more about this in the Nixpacks docs on [nixpkgs archive](https://nixpacks.com/docs/configuration/file#nixpkgs-archive?utm_source=coolify.io)
147153

148154
This is a Nixpacks-related issue, not a Coolify issue. For further assistance, please contact the Nixpacks support team.
149-
:::
155+
:::

0 commit comments

Comments
 (0)