Skip to content

Commit d779428

Browse files
authored
Merge pull request #1871 from Dokploy/canary
🚀 Release v0.22.4
2 parents f337dd7 + 80e6f21 commit d779428

9 files changed

Lines changed: 71 additions & 54 deletions

File tree

21.8 KB
Loading

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,19 @@ For detailed documentation, visit [docs.dokploy.com](https://docs.dokploy.com).
9191

9292
</div>
9393

94+
### Elite Contributors 🥈
95+
96+
<div style="display: flex; align-items: center; gap: 20px;">
97+
98+
<a href="https://americancloud.com/?ref=dokploy" target="_blank" style="display: inline-block; padding: 10px; border-radius: 10px;">
99+
<img src=".github/sponsors/american-cloud.png" alt="AmericanCloud" height="70"/>
100+
</a>
101+
102+
</div>
94103
<!-- Elite Contributors 🥈 -->
95104

105+
106+
96107
<!-- Add Elite Contributors here -->
97108

98109
### Supporting Members 🥉
@@ -104,6 +115,7 @@ For detailed documentation, visit [docs.dokploy.com](https://docs.dokploy.com).
104115
<a href="https://itsdb-center.com?ref=dokploy "><img src=".github/sponsors/its.png" width="65px" alt="Itsdb-center"/></a>
105116
<a href="https://openalternative.co/?ref=dokploy "><img src=".github/sponsors/openalternative.png" width="65px" alt="Openalternative"/></a>
106117
<a href="https://synexa.ai/?ref=dokploy"><img src=".github/sponsors/synexa.png" width="65px" alt="Synexa"/></a>
118+
107119
</div>
108120

109121

apps/dokploy/components/dashboard/settings/users/show-invitations.tsx

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -185,24 +185,21 @@ export const ShowInvitations = () => {
185185
Cancel Invitation
186186
</DropdownMenuItem>
187187
)}
188-
189-
<DropdownMenuItem
190-
className="w-full cursor-pointer"
191-
onSelect={async (_e) => {
192-
await removeInvitation({
193-
invitationId: invitation.id,
194-
}).then(() => {
195-
refetch();
196-
toast.success(
197-
"Invitation removed",
198-
);
199-
});
200-
}}
201-
>
202-
Remove Invitation
203-
</DropdownMenuItem>
204188
</>
205189
)}
190+
<DropdownMenuItem
191+
className="w-full cursor-pointer"
192+
onSelect={async (_e) => {
193+
await removeInvitation({
194+
invitationId: invitation.id,
195+
}).then(() => {
196+
refetch();
197+
toast.success("Invitation removed");
198+
});
199+
}}
200+
>
201+
Remove Invitation
202+
</DropdownMenuItem>
206203
</DropdownMenuContent>
207204
</DropdownMenu>
208205
</TableCell>

apps/dokploy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dokploy",
3-
"version": "v0.22.3",
3+
"version": "v0.22.4",
44
"private": true,
55
"license": "Apache-2.0",
66
"type": "module",
@@ -92,7 +92,7 @@
9292
"adm-zip": "^0.5.14",
9393
"ai": "^4.0.23",
9494
"bcrypt": "5.1.1",
95-
"better-auth": "1.2.6",
95+
"better-auth": "v1.2.8-beta.7",
9696
"bl": "6.0.11",
9797
"boxen": "^7.1.1",
9898
"bullmq": "5.4.2",

packages/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@oslojs/encoding": "1.1.0",
4141
"@oslojs/crypto": "1.0.1",
4242
"drizzle-dbml-generator": "0.10.0",
43-
"better-auth": "1.2.6",
43+
"better-auth": "v1.2.8-beta.7",
4444
"@faker-js/faker": "^8.4.1",
4545
"@octokit/auth-app": "^6.0.4",
4646
"@react-email/components": "^0.0.21",

packages/server/src/utils/backups/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const getComposeContainerCommand = (
116116
composeType: "stack" | "docker-compose" | undefined,
117117
) => {
118118
if (composeType === "stack") {
119-
return `docker ps -q --filter "status=running" --filter "label=com.docker.stack.namespace=${appName}" --filter "label=com.docker.swarm.service.name=${serviceName}" | head -n 1`;
119+
return `docker ps -q --filter "status=running" --filter "label=com.docker.stack.namespace=${appName}" --filter "label=com.docker.swarm.service.name=${appName}_${serviceName}" | head -n 1`;
120120
}
121121
return `docker ps -q --filter "status=running" --filter "label=com.docker.compose.project=${appName}" --filter "label=com.docker.compose.service=${serviceName}" | head -n 1`;
122122
};
@@ -234,7 +234,7 @@ export const getBackupCommand = (
234234
fi
235235
236236
echo "[$(date)] Container Up: $CONTAINER_ID" >> ${logPath};
237-
237+
238238
# Run the backup command and capture the exit status
239239
BACKUP_OUTPUT=$(${backupCommand} 2>&1 >/dev/null) || {
240240
echo "[$(date)] ❌ Error: Backup failed" >> ${logPath};
@@ -244,14 +244,14 @@ export const getBackupCommand = (
244244
245245
echo "[$(date)] ✅ backup completed successfully" >> ${logPath};
246246
echo "[$(date)] Starting upload to S3..." >> ${logPath};
247-
247+
248248
# Run the upload command and capture the exit status
249249
UPLOAD_OUTPUT=$(${backupCommand} | ${rcloneCommand} 2>&1 >/dev/null) || {
250250
echo "[$(date)] ❌ Error: Upload to S3 failed" >> ${logPath};
251251
echo "Error: $UPLOAD_OUTPUT" >> ${logPath};
252252
exit 1;
253253
}
254-
254+
255255
echo "[$(date)] ✅ Upload to S3 completed successfully" >> ${logPath};
256256
echo "Backup done ✅" >> ${logPath};
257257
`;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const buildCompose = async (compose: ComposeNested, logPath: string) => {
3535

3636
if (compose.isolatedDeployment) {
3737
await execAsync(
38-
`docker network inspect ${compose.appName} >/dev/null 2>&1 || docker network create --attachable ${compose.appName}`,
38+
`docker network inspect ${compose.appName} >/dev/null 2>&1 || docker network create ${composeType === "stack" ? "--driver overlay" : ""} --attachable ${compose.appName}`,
3939
);
4040
}
4141

packages/server/src/utils/restore/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const getPostgresRestoreCommand = (
77
database: string,
88
databaseUser: string,
99
) => {
10-
return `docker exec -i $CONTAINER_ID sh -c "pg_restore -U ${databaseUser} -d ${database} --clean --if-exists"`;
10+
return `docker exec -i $CONTAINER_ID sh -c "pg_restore -U ${databaseUser} -d ${database} -O --clean --if-exists"`;
1111
};
1212

1313
export const getMariadbRestoreCommand = (

pnpm-lock.yaml

Lines changed: 37 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)