diff --git a/Dockerfile b/Dockerfile
index 8da1db45..8b9d215c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,7 +27,7 @@ WORKDIR /app
# Set production
ENV NODE_ENV=production
-RUN apt-get update && apt-get install -y curl apache2-utils && rm -rf /var/lib/apt/lists/*
+RUN apt-get update && apt-get install -y curl unzip apache2-utils && rm -rf /var/lib/apt/lists/*
# Copy only the necessary files
COPY --from=build /prod/dokploy/.next ./.next
@@ -42,7 +42,7 @@ COPY --from=build /prod/dokploy/node_modules ./node_modules
# Install docker
-RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && rm get-docker.sh
+RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && rm get-docker.sh && curl https://rclone.org/install.sh | bash
# Install Nixpacks and tsx
# | VERBOSE=1 VERSION=1.21.0 bash
@@ -55,4 +55,4 @@ RUN curl -sSL https://nixpacks.com/install.sh -o install.sh \
COPY --from=buildpacksio/pack:0.35.0 /usr/local/bin/pack /usr/local/bin/pack
EXPOSE 3000
-CMD [ "pnpm", "start" ]
+CMD [ "pnpm", "start" ]
\ No newline at end of file
diff --git a/apps/docs/content/docs/core/extra/comparison.mdx b/apps/docs/content/docs/core/extra/comparison.mdx
index 0036ccbf..028ea6d0 100644
--- a/apps/docs/content/docs/core/extra/comparison.mdx
+++ b/apps/docs/content/docs/core/extra/comparison.mdx
@@ -1,22 +1,23 @@
---
-title: 'Comparison'
-description: 'A comparison of Dokploy, CapRover, Dokku, and Coolify'
+title: "Comparison"
+description: "A comparison of Dokploy, CapRover, Dokku, and Coolify"
---
Comparison of the following deployment tools:
-| Feature | Dokploy | CapRover | Dokku | Coolify |
-|-----------------------------------|---------------------------------------|--------------------------------------|--------------------------------------|--------------------------------------|
-| **User Interface** | ✅ | ✅ | ❌ | ✅ |
-| **Docker compose support** | ✅ | ❌ | ❌ | ✅ |
-| **API/CLI** | ✅ | ✅ | ✅ | ✅ |
-| **Multi node support** | ✅ | ✅ | ❌ | ✅ |
-| **Traefik Integration** | ✅ | ✅ | Available via Plugins | ✅ |
-| **User Permission Management** | ✅ | ❌ | ❌ | ✅ |
-| **Advanced User Permission Management** | ✅ | ❌ | ❌ | ❌ |
-| **Terminal Access Built In** | ✅ | ❌ | ❌ | ✅ |
-| **Database Support** | ✅ | ✅ | ❌ | ✅ |
-| **Monitoring** | ✅ | ✅ | ❌ | ❌ |
-| **Backups** | ✅ | Available via Plugins | Available via Plugins | ✅ |
-| **Open Source** | ✅ | ✅ | ✅ | ✅ |
-| **Cloud/Paid Version** | ❌ | ✅ | ❌ | ✅ |
+| Feature | Dokploy | CapRover | Dokku | Coolify |
+| --------------------------------------- | ------- | --------------------- | --------------------- | ------- |
+| **User Interface** | ✅ | ✅ | ❌ | ✅ |
+| **Docker compose support** | ✅ | ❌ | ❌ | ✅ |
+| **API/CLI** | ✅ | ✅ | ✅ | ✅ |
+| **Multi node support** | ✅ | ✅ | ❌ | ✅ |
+| **Traefik Integration** | ✅ | ✅ | Available via Plugins | ✅ |
+| **User Permission Management** | ✅ | ❌ | ❌ | ✅ |
+| **Advanced User Permission Management** | ✅ | ❌ | ❌ | ❌ |
+| **Terminal Access Built In** | ✅ | ❌ | ❌ | ✅ |
+| **Database Support** | ✅ | ✅ | ❌ | ✅ |
+| **Monitoring** | ✅ | ✅ | ❌ | ❌ |
+| **Backups** | ✅ | Available via Plugins | Available via Plugins | ✅ |
+| **Open Source** | ✅ | ✅ | ✅ | ✅ |
+| **Multi Server Support** | ✅ | ❌ | ❌ | ✅ |
+| **Cloud/Paid Version** | ❌ | ✅ | ✅ | ✅ |
diff --git a/apps/docs/content/docs/core/get-started/installation.mdx b/apps/docs/content/docs/core/get-started/installation.mdx
index 96e264b3..4bd4490f 100644
--- a/apps/docs/content/docs/core/get-started/installation.mdx
+++ b/apps/docs/content/docs/core/get-started/installation.mdx
@@ -29,7 +29,7 @@ We have tested on the following Linux Distros:
### Providers
-- [Hostinger](https://www.hostinger.com/vps-hosting?ref=dokploy) Get 20% Discount using this referral link: [Referral Link](https://hostinger.com?REFERRALCODE=1SIUMAURICI97)
+- [Hostinger](https://www.hostinger.com/vps-hosting?ref=dokploy) Get 20% Discount using this referral link: [Referral Link](https://www.hostinger.com/vps-hosting?REFERRALCODE=1SIUMAURICI97)
- [DigitalOcean](https://www.digitalocean.com/pricing/droplets#basic-droplets) Get 200$ credits for free with this referral link: [Referral Link](https://m.do.co/c/db24efd43f35)
- [Hetzner](https://www.hetzner.com/cloud/) Get 20€ credits for free with this referral link: [Referral Link](https://hetzner.cloud/?ref=vou4fhxJ1W2D)
- [Linode](https://www.linode.com/es/pricing/#compute-shared)
diff --git a/apps/docs/content/docs/core/meta.json b/apps/docs/content/docs/core/meta.json
index a6a8a3c9..b2c3020f 100644
--- a/apps/docs/content/docs/core/meta.json
+++ b/apps/docs/content/docs/core/meta.json
@@ -64,6 +64,9 @@
"docker/overview",
"---Monitoring---",
"monitoring/overview",
+ "---Multi Server---",
+ "multi-server/overview",
+ "multi-server/example",
"---Cluster---",
"cluster/overview",
"---Deployments---",
diff --git a/apps/docs/content/docs/core/multi-server/example.mdx b/apps/docs/content/docs/core/multi-server/example.mdx
new file mode 100644
index 00000000..109722c4
--- /dev/null
+++ b/apps/docs/content/docs/core/multi-server/example.mdx
@@ -0,0 +1,117 @@
+---
+title: Example
+description: "Example to setup a remote server and deploy application in a VPS."
+---
+
+import { Callout } from "fumadocs-ui/components/callout";
+
+Multi server allows you to deploy your apps remotely to different servers without needing to build and run them where the Dokploy UI is installed.
+
+## Requirements
+
+1. To install Dokploy UI, follow the [installation guide](en/docs/core/get-started/installation).
+
+2. Create an SSH key by going to `/dashboard/settings/ssh-keys` and add a new key. Be sure to copy the public key.
+
+
+
+3. Decide which remote server to deploy your apps on. We recommend these reliable providers:
+
+- [Hostinger](https://www.hostinger.com/vps-hosting?ref=dokploy) Get 20% off with this [referral link](https://www.hostinger.com/vps-hosting?REFERRALCODE=1SIUMAURICI97).
+- [DigitalOcean](https://www.digitalocean.com/pricing/droplets#basic-droplets) Get $200 credits for free with this [referral link](https://m.do.co/c/db24efd43f35).
+- [Hetzner](https://www.hetzner.com/cloud/) Get €20 credits with this [referral link](https://hetzner.cloud/?ref=vou4fhxJ1W2D).
+- [Linode](https://www.linode.com/es/pricing/#compute-shared).
+- [Vultr](https://www.vultr.com/pricing/#cloud-compute).
+- [Scaleway](https://www.scaleway.com/en/pricing/?tags=baremetal,available).
+- [Google Cloud](https://cloud.google.com/).
+- [AWS](https://aws.amazon.com/ec2/pricing/).
+
+4. When creating the server, it should ask for SSH keys. Ideally, use your computer's public key and the key you generated in the previous step. Here's how to add the public key in Hostinger:
+
+
+
+The steps are similar across other providers.
+
+5. Copy the server’s IP address and ensure you know the username (often `root`). Fill in all fields and click `Create`.
+
+
+
+6. To test connectivity, open the server dropdown and click `Enter Terminal`. If everything is correct, you should be able to interact with the remote server.
+
+7. Click `Setup Server` to proceed. There are two tabs: SSH Keys and Deployments. This guide explains the easy way, but you can follow the manual process via the Dokploy UI if you prefer.
+
+
+
+8. Click `Deployments`, then `Setup Server`. If everything is correct, you should see output similar to this:
+
+
+
+
+ You only need to run this setup once. If Dokploy updates later, check the
+ release notes to see if rerunning this command is required.
+
+
+9. You're ready to deploy your apps! Let's test it out:
+
+
+
+10. To check which server an app belongs to, you’ll see the server name at the top. If no server is selected, it defaults to `Dokploy Server`. Click `Deploy` to start building your app on the remote server. You can check the `Logs` tab to see the build process. For this example, we’ll use a test repo:
+ Repo: `https://github.com/Dokploy/examples.git`
+ Branch: `main`
+ Build Path: `/astro`
+
+
+
+11. Once the build is done, go to `Domains` and create a free domain. Just click `Create` and you’re good to go! 🎊
+
+{" "}
+
+
diff --git a/apps/docs/content/docs/core/multi-server/overview.mdx b/apps/docs/content/docs/core/multi-server/overview.mdx
new file mode 100644
index 00000000..051b314c
--- /dev/null
+++ b/apps/docs/content/docs/core/multi-server/overview.mdx
@@ -0,0 +1,29 @@
+---
+title: Overview
+description: "Deploy your apps to multiple servers remotely."
+---
+
+import { Callout } from "fumadocs-ui/components/callout";
+
+Multi server allows you to deploy your apps remotely to different servers without needing to build and run them where the Dokploy UI is installed.
+
+To use the multi-server feature, you need to have Dokploy UI installed either locally or on a remote server. We recommend using a remote server for better connectivity, security, and isolation, for remote instances we install only a traefik instance.
+
+If you plan to only deploy apps to remote servers and use Dokploy UI for managing deployments, Dokploy will use around 250 MB of RAM and minimal CPU, so a low-resource server should be sufficient.
+
+All the features we have documented previously are supported by Dokploy Multi Server. The only feature not supported is remote server monitoring, due to performance reasons. However, all functionalities should work the same as when deploying on the same server where Dokploy UI is installed.
+
+## Features
+
+1. **Enter the terminal**: Allows you to access the terminal of the remote server.
+2. **Setup Server**: Allows you to configure the remote server.
+ - **SSH Keys**: Steps to add SSH keys to the remote server.
+ - **Deployments**: Steps to configure the remote server for deploying applications.
+3. **Edit Server**: Allows you to modify the remote server's details, such as SSH key, name, description, IP, etc.
+4. **View Actions**: Lets you perform actions like managing the Traefik instance, storage, and activating Docker cleanup.
+5. **Show Traefik File System**: Displays the contents of the remote server's directory.
+6. **Show Docker Containers**: Shows the Docker containers running on the remote server.
+
+
+ Remote server monitoring is not supported due to performance reasons.
+
diff --git a/apps/docs/content/docs/core/troubleshooting/overview.mdx b/apps/docs/content/docs/core/troubleshooting/overview.mdx
index d44d3d66..66a9fe80 100644
--- a/apps/docs/content/docs/core/troubleshooting/overview.mdx
+++ b/apps/docs/content/docs/core/troubleshooting/overview.mdx
@@ -3,4 +3,90 @@ title: Overview
description: Solve the most common problems that occur when using Dokploy.
---
-WIP
\ No newline at end of file
+## Applications Domain Not Working?
+
+You see the deployment succeeded, and logs are running, but the domain isn't working? Here's what to check:
+
+1. **Correct Port Mapping**: Ensure the domain is using the correct port for your application. For example, if you're using Next.js, the port should be `3000`, or for Laravel, it should be `8000`. If you change the app port, update the domain to reflect that.
+2. **Avoid Using `Ports` in Advanced Settings**: Generally, there's no need to use the `Ports` feature unless you want to access your app via `IP:port`. Leaving this feature enabled may interfere with your domain.
+
+3. **Let's Encrypt Certificates**: It's crucial to point the domain to your server’s IP **before** adding it in Dokploy. If the domain is added first, the certificate won’t be generated, and you may need to recreate the domain or restart Traefik.
+
+4. **Listen on 0.0.0.0, Not 127.0.0.1**: If your app is bound to `127.0.0.1` (which is common in Vite apps), switch it to `0.0.0.0` to allow external access.
+
+## Logs and Monitoring Not Working After Changing Application Placement?
+
+This is expected behavior. If the application is running on a different node (worker), the UI won’t have access to logs or monitoring, as they're not on the same node.
+
+## Mounts Are Causing My Application Not to Run?
+
+Docker Swarm won't run your application if there are invalid mounts, even if the deployment shows as successful. Double-check your mounts to ensure they are valid.
+
+## Volumes in Docker Compose Not Working?
+
+For Docker Compose, all file mounts defined in the `volumes` section will be stored in the `files` folder. This is the default directory structure:
+
+## I added a volume to my docker compose, but is not finding the volume?
+
+For docker compose all the file mounts you've created in the volumes section will be stored to files folder, this is the default structure of the docker compose.
+
+```
+/application-name
+ /code
+ /files
+```
+
+So instead of using this invalid way to mount a volume:
+
+```yaml
+volumes:
+ - "/folder:/path/in/container" ❌
+```
+
+You should use this format:
+
+```yaml
+volumes:
+ - "../files/my-database:/var/lib/mysql" ✅
+ - "../files/my-configs:/etc/my-app/config" ✅
+```
+
+## Logs Not Loading When Deploying to a Remote Server?
+
+There are a few potential reasons for this:
+
+1. **Slow Server:**: If the server is too slow, it may struggle to handle concurrent requests, leading to SSL handshake errors.
+2. **Insufficient Disk Space:** If the server doesn't have enough disk space, the logs may not load.
+
+## Docker Compose Domain Not Working?
+
+When adding a domain in your Docker Compose file, it’s not necessary to expose the ports directly. Simply specify the port where your app is running. Exposing the ports can lead to conflicts with other applications or ports.
+
+Example of what not to do:
+
+```yaml
+services:
+ app:
+ image: dokploy/dokploy:latest
+ ports:
+ - 3000:3000
+```
+
+Recommended approach:
+
+```yaml
+services:
+ app:
+ image: dokploy/dokploy:latest
+ ports:
+ - 3000
+ - 80
+```
+
+Then, when creating the domain in Dokploy, specify the service name and port, like this:
+
+```yaml
+domain: my-app.com
+serviceName: app
+port: 3000
+```
diff --git a/apps/docs/public/assets/hostinger-add-sshkey.png b/apps/docs/public/assets/hostinger-add-sshkey.png
new file mode 100644
index 00000000..dfbb9a77
Binary files /dev/null and b/apps/docs/public/assets/hostinger-add-sshkey.png differ
diff --git a/apps/docs/public/assets/multi-server-add-app.png b/apps/docs/public/assets/multi-server-add-app.png
new file mode 100644
index 00000000..d6f83882
Binary files /dev/null and b/apps/docs/public/assets/multi-server-add-app.png differ
diff --git a/apps/docs/public/assets/multi-server-add-server.png b/apps/docs/public/assets/multi-server-add-server.png
new file mode 100644
index 00000000..48e34601
Binary files /dev/null and b/apps/docs/public/assets/multi-server-add-server.png differ
diff --git a/apps/docs/public/assets/multi-server-finish.png b/apps/docs/public/assets/multi-server-finish.png
new file mode 100644
index 00000000..3f043010
Binary files /dev/null and b/apps/docs/public/assets/multi-server-finish.png differ
diff --git a/apps/docs/public/assets/multi-server-overview.png b/apps/docs/public/assets/multi-server-overview.png
new file mode 100644
index 00000000..e1d9c5e6
Binary files /dev/null and b/apps/docs/public/assets/multi-server-overview.png differ
diff --git a/apps/docs/public/assets/multi-server-setup-2.png b/apps/docs/public/assets/multi-server-setup-2.png
new file mode 100644
index 00000000..2f7f907e
Binary files /dev/null and b/apps/docs/public/assets/multi-server-setup-2.png differ
diff --git a/apps/docs/public/assets/multi-server-setup-3.png b/apps/docs/public/assets/multi-server-setup-3.png
new file mode 100644
index 00000000..66f9cc1e
Binary files /dev/null and b/apps/docs/public/assets/multi-server-setup-3.png differ
diff --git a/apps/docs/public/assets/multi-server-setup-app.png b/apps/docs/public/assets/multi-server-setup-app.png
new file mode 100644
index 00000000..88393cb3
Binary files /dev/null and b/apps/docs/public/assets/multi-server-setup-app.png differ
diff --git a/apps/docs/public/assets/multi-server-setup.png b/apps/docs/public/assets/multi-server-setup.png
new file mode 100644
index 00000000..c5bca6bf
Binary files /dev/null and b/apps/docs/public/assets/multi-server-setup.png differ
diff --git a/apps/docs/public/assets/ssh-keys.png b/apps/docs/public/assets/ssh-keys.png
new file mode 100644
index 00000000..52ee5c5e
Binary files /dev/null and b/apps/docs/public/assets/ssh-keys.png differ
diff --git a/apps/dokploy/LICENSE.MD b/apps/dokploy/LICENSE.MD
index 9031c94b..59e9d822 100644
--- a/apps/dokploy/LICENSE.MD
+++ b/apps/dokploy/LICENSE.MD
@@ -17,10 +17,10 @@ See the License for the specific language governing permissions and limitations
## Additional Terms for Specific Features
-The following additional terms apply to the multi-node support and Docker Compose file support features of Dokploy. In the event of a conflict, these provisions shall take precedence over those in the Apache License:
+The following additional terms apply to the multi-node support, Docker Compose file and Multi Server features of Dokploy. In the event of a conflict, these provisions shall take precedence over those in the Apache License:
-- **Self-Hosted Version Free**: All features of Dokploy, including multi-node support and Docker Compose file support, will always be free to use in the self-hosted version.
-- **Restriction on Resale**: The multi-node support and Docker Compose file support features cannot be sold or offered as a service by any party other than the copyright holder without prior written consent.
-- **Modification Distribution**: Any modifications to the multi-node support and Docker Compose file support features must be distributed freely and cannot be sold or offered as a service.
+- **Self-Hosted Version Free**: All features of Dokploy, including multi-node support, Docker Compose file support and Multi Server, will always be free to use in the self-hosted version.
+- **Restriction on Resale**: The multi-node support, Docker Compose file support and Multi Server features cannot be sold or offered as a service by any party other than the copyright holder without prior written consent.
+- **Modification Distribution**: Any modifications to the multi-node support, Docker Compose file support and Multi Server features must be distributed freely and cannot be sold or offered as a service.
For further inquiries or permissions, please contact us directly.
diff --git a/apps/dokploy/__test__/drop/drop.test.test.ts b/apps/dokploy/__test__/drop/drop.test.test.ts
index 5561999c..c411566a 100644
--- a/apps/dokploy/__test__/drop/drop.test.test.ts
+++ b/apps/dokploy/__test__/drop/drop.test.test.ts
@@ -1,6 +1,8 @@
import fs from "node:fs/promises";
import path from "node:path";
-import { APPLICATIONS_PATH } from "@/server/constants";
+import { paths } from "@/server/constants";
+const { APPLICATIONS_PATH } = paths();
+import type { ApplicationNested } from "@/server/utils/builders";
import { unzipDrop } from "@/server/utils/builders/drop";
import AdmZip from "adm-zip";
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
@@ -11,11 +13,84 @@ if (typeof window === "undefined") {
globalThis.FileList = undici.FileList as any;
}
+const baseApp: ApplicationNested = {
+ applicationId: "",
+ applicationStatus: "done",
+ appName: "",
+ autoDeploy: true,
+ serverId: "",
+ branch: null,
+ dockerBuildStage: "",
+ buildArgs: null,
+ buildPath: "/",
+ gitlabPathNamespace: "",
+ buildType: "nixpacks",
+ bitbucketBranch: "",
+ bitbucketBuildPath: "",
+ bitbucketId: "",
+ bitbucketRepository: "",
+ bitbucketOwner: "",
+ githubId: "",
+ gitlabProjectId: 0,
+ gitlabBranch: "",
+ gitlabBuildPath: "",
+ gitlabId: "",
+ gitlabRepository: "",
+ gitlabOwner: "",
+ command: null,
+ cpuLimit: null,
+ cpuReservation: null,
+ createdAt: "",
+ customGitBranch: "",
+ customGitBuildPath: "",
+ customGitSSHKeyId: null,
+ customGitUrl: "",
+ description: "",
+ dockerfile: null,
+ dockerImage: null,
+ dropBuildPath: null,
+ enabled: null,
+ env: null,
+ healthCheckSwarm: null,
+ labelsSwarm: null,
+ memoryLimit: null,
+ memoryReservation: null,
+ modeSwarm: null,
+ mounts: [],
+ name: "",
+ networkSwarm: null,
+ owner: null,
+ password: null,
+ placementSwarm: null,
+ ports: [],
+ projectId: "",
+ publishDirectory: null,
+ redirects: [],
+ refreshToken: "",
+ registry: null,
+ registryId: null,
+ replicas: 1,
+ repository: null,
+ restartPolicySwarm: null,
+ rollbackConfigSwarm: null,
+ security: [],
+ sourceType: "git",
+ subtitle: null,
+ title: null,
+ updateConfigSwarm: null,
+ username: null,
+ dockerContextPath: null,
+};
+//
vi.mock("@/server/constants", () => ({
- APPLICATIONS_PATH: "./__test__/drop/zips/output",
+ paths: () => ({
+ APPLICATIONS_PATH: "./__test__/drop/zips/output",
+ }),
+ // APPLICATIONS_PATH: "./__test__/drop/zips/output",
}));
describe("unzipDrop using real zip files", () => {
+ // const { APPLICATIONS_PATH } = paths();
beforeAll(async () => {
await fs.rm(APPLICATIONS_PATH, { recursive: true, force: true });
});
@@ -25,39 +100,42 @@ describe("unzipDrop using real zip files", () => {
});
it("should correctly extract a zip with a single root folder", async () => {
- const appName = "single-file";
- const outputPath = path.join(APPLICATIONS_PATH, appName, "code");
+ baseApp.appName = "single-file";
+ // const appName = "single-file";
+ const outputPath = path.join(APPLICATIONS_PATH, baseApp.appName, "code");
const zip = new AdmZip("./__test__/drop/zips/single-file.zip");
const zipBuffer = zip.toBuffer();
const file = new File([zipBuffer], "single.zip");
- await unzipDrop(file, appName);
+ await unzipDrop(file, baseApp);
const files = await fs.readdir(outputPath, { withFileTypes: true });
expect(files.some((f) => f.name === "test.txt")).toBe(true);
});
it("should correctly extract a zip with a single root folder and a subfolder", async () => {
- const appName = "folderwithfile";
- const outputPath = path.join(APPLICATIONS_PATH, appName, "code");
+ baseApp.appName = "folderwithfile";
+ // const appName = "folderwithfile";
+ const outputPath = path.join(APPLICATIONS_PATH, baseApp.appName, "code");
const zip = new AdmZip("./__test__/drop/zips/folder-with-file.zip");
const zipBuffer = zip.toBuffer();
const file = new File([zipBuffer], "single.zip");
- await unzipDrop(file, appName);
+ await unzipDrop(file, baseApp);
const files = await fs.readdir(outputPath, { withFileTypes: true });
expect(files.some((f) => f.name === "folder1.txt")).toBe(true);
});
it("should correctly extract a zip with multiple root folders", async () => {
- const appName = "two-folders";
- const outputPath = path.join(APPLICATIONS_PATH, appName, "code");
+ baseApp.appName = "two-folders";
+ // const appName = "two-folders";
+ const outputPath = path.join(APPLICATIONS_PATH, baseApp.appName, "code");
const zip = new AdmZip("./__test__/drop/zips/two-folders.zip");
const zipBuffer = zip.toBuffer();
const file = new File([zipBuffer], "single.zip");
- await unzipDrop(file, appName);
+ await unzipDrop(file, baseApp);
const files = await fs.readdir(outputPath, { withFileTypes: true });
@@ -66,13 +144,14 @@ describe("unzipDrop using real zip files", () => {
});
it("should correctly extract a zip with a single root with a file", async () => {
- const appName = "nested";
- const outputPath = path.join(APPLICATIONS_PATH, appName, "code");
+ baseApp.appName = "nested";
+ // const appName = "nested";
+ const outputPath = path.join(APPLICATIONS_PATH, baseApp.appName, "code");
const zip = new AdmZip("./__test__/drop/zips/nested.zip");
const zipBuffer = zip.toBuffer();
const file = new File([zipBuffer], "single.zip");
- await unzipDrop(file, appName);
+ await unzipDrop(file, baseApp);
const files = await fs.readdir(outputPath, { withFileTypes: true });
@@ -82,13 +161,14 @@ describe("unzipDrop using real zip files", () => {
});
it("should correctly extract a zip with a single root with a folder", async () => {
- const appName = "folder-with-sibling-file";
- const outputPath = path.join(APPLICATIONS_PATH, appName, "code");
+ baseApp.appName = "folder-with-sibling-file";
+ // const appName = "folder-with-sibling-file";
+ const outputPath = path.join(APPLICATIONS_PATH, baseApp.appName, "code");
const zip = new AdmZip("./__test__/drop/zips/folder-with-sibling-file.zip");
const zipBuffer = zip.toBuffer();
const file = new File([zipBuffer], "single.zip");
- await unzipDrop(file, appName);
+ await unzipDrop(file, baseApp);
const files = await fs.readdir(outputPath, { withFileTypes: true });
diff --git a/apps/dokploy/__test__/traefik/traefik.test.ts b/apps/dokploy/__test__/traefik/traefik.test.ts
index 7ca9f169..222f8fd7 100644
--- a/apps/dokploy/__test__/traefik/traefik.test.ts
+++ b/apps/dokploy/__test__/traefik/traefik.test.ts
@@ -9,6 +9,7 @@ const baseApp: ApplicationNested = {
applicationStatus: "done",
appName: "",
autoDeploy: true,
+ serverId: "",
branch: null,
dockerBuildStage: "",
buildArgs: null,
diff --git a/apps/dokploy/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx b/apps/dokploy/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx
index fd91703b..6750527d 100644
--- a/apps/dokploy/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx
+++ b/apps/dokploy/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx
@@ -278,6 +278,12 @@ export const AddSwarmSettings = ({ applicationId }: Props) => {
{isError && {error?.message}}
+
+
+ Changing settings such as placements may cause the logs/monitoring
+ to be unavailable.
+
+