Skip to content

Commit 54b9f7b

Browse files
authored
Merge pull request #1275 from Dokploy/canary
🚀 Release v0.18.1
2 parents cbc74b1 + 97b77e5 commit 54b9f7b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/dokploy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dokploy",
3-
"version": "v0.18.0",
3+
"version": "v0.18.1",
44
"private": true,
55
"license": "Apache-2.0",
66
"type": "module",

packages/server/src/utils/builders/compose.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ const sanitizeCommand = (command: string) => {
154154

155155
export const createCommand = (compose: ComposeNested) => {
156156
const { composeType, appName, sourceType } = compose;
157-
158157
if (compose.command) {
159158
return `${sanitizeCommand(compose.command)}`;
160159
}
@@ -163,7 +162,9 @@ export const createCommand = (compose: ComposeNested) => {
163162
sourceType === "raw" ? "docker-compose.yml" : compose.composePath;
164163
let command = "";
165164

166-
if (composeType === "stack") {
165+
if (composeType === "docker-compose") {
166+
command = `compose -p ${appName} -f ${path} up -d --build --remove-orphans`;
167+
} else if (composeType === "stack") {
167168
command = `stack deploy -c ${path} ${appName} --prune`;
168169
}
169170

0 commit comments

Comments
 (0)