Commit Graph

4916 Commits

Author SHA1 Message Date
Mauricio Siu 18656a8d3b test: move the process-spawning remote-stream test to test:real
It hangs on CI runners. Let the other PR checks finish when one fails.
2026-12-04 00:20:03 -06:00
Mauricio Siu e91e6c199a chore: remove unused Dockerfile and dockerignore for TanStack build 2026-12-04 00:16:53 -06:00
Mauricio Siu 0db429f172 test: give both @dokploy/server specifiers the same mock in schedule-target
Build the server bundle with node instead of tsx.
2026-12-04 00:12:58 -06:00
Mauricio Siu 3e5d2118bd test: share a worker process between test files and drop test:real from CI
Loading node_modules for every test file was most of the run time. setup.ts now
resets env, fetch, spies, timers and the module graph between files instead.
The *.real.test.ts suite still runs locally with pnpm test:real.
2026-12-04 00:08:19 -06:00
autofix-ci[bot] 4f48e7ee06 [autofix.ci] apply automated fixes 2026-12-04 05:20:50 +00:00
Mauricio Siu 096477ac7c refactor: clean up Docker workflows and improve server setup 2026-12-03 23:19:40 -06:00
autofix-ci[bot] 5dc12c00dc [autofix.ci] apply automated fixes 2026-12-04 04:55:46 +00:00
Mauricio Siu 37fc26f1ac refactor: move the TanStack app to apps/dokploy and Next to apps/dokploy-next
The TanStack app becomes the official dokploy app (image, cloud image and CI).
Next keeps building from apps/dokploy-next against the shared server code.
2026-12-03 22:55:01 -06:00
Mauricio Siu cd4a2dc28c refactor(tanstack): streamline server and UI handling, update README and package scripts 2026-12-03 22:35:29 -06:00
Mauricio Siu 2017fb551f chore(tanstack): add the dokploy package scripts
reset-password, reset-2fa, transfer-ownership, migrate-auth-secret and
wait-for-postgres run from dist-server so they work inside the image;
database, migration and test scripts delegate to apps/dokploy.
2026-12-03 21:58:42 -06:00
Mauricio Siu ea23378d06 feat(tanstack): port the UI changes from canary
High availability card, backup encryption fields and the mobile layout
fixes, applied to the TanStack copy of the components and routes.
2026-12-03 21:58:41 -06:00
Mauricio Siu 9d4487b437 fix(tanstack): clear the query cache on logout
The / route reads the session from the query cache, so a cached session
sent the user back to the dashboard until a reload.
2026-12-03 21:58:39 -06:00
Mauricio Siu c885d14a09 Merge remote-tracking branch 'origin/canary' into feat/tanstack-start 2026-12-03 21:53:49 -06:00
Mauricio Siu b7b71acae4 perf: lazy-load rarely used server dependencies
AI SDKs, AWS SDKs, react-email templates, nodemailer, resend, public-ip and
trpc-openapi are imported on use; faker uses the en locale only. The server
bundle is code-split so dynamic imports stay out of startup.

Idle heap after load: 126 MB -> 81 MB.
2026-12-03 18:16:46 -06:00
Mauricio Siu ddae645d51 refactor(tanstack): drop the Next shims and the Next API compat layer
The UI (components, hooks, lib, utils) is now a copy inside apps/tanstack-start that uses
TanStack Router natively (Link, useNavigate, useParams, useSearch, React.lazy) and
createTRPCReact. The /api endpoints run as plain Node handlers instead of Next API
handlers. apps/dokploy is unchanged.
2026-12-03 18:05:03 -06:00
Mauricio Siu c4f6de51f8 perf(tanstack): drop dashboard SSR and call tRPC in-process
The dashboard no longer renders on the server, SSR calls the API router directly
instead of over loopback HTTP in production, and loader data is no longer refetched
on mount.
2026-12-03 14:58:10 -06:00
Mauricio Siu 0a02b5f5d6 feat: Dokploy UI on TanStack Start
Adds apps/tanstack-start: every page of apps/dokploy/pages as a native
TanStack Start route (beforeLoad/loader/head instead of getServerSideProps),
sharing components, hooks and the tRPC client with apps/dokploy.

- Next-free HTTP server running the pages/api handlers, websockets, crons
  and the Start handler in one process
- Dashboard rendered with ssr: "data-only"; tRPC goes over loopback during SSR
- Fontsource fonts, route head() titles with whitelabel branding
- Dockerfile.tanstack (Node) and Dockerfile.tanstack-bun images
- Workflow publishing dokploy/dokploy:tanstack for amd64 and arm64
- Pin @codemirror/language, @codemirror/view and @lezer/highlight to a
  single copy so syntax highlighting works across both apps
2026-12-03 13:59:40 -06:00
Mauricio Siu f053ecba14 Merge pull request #6199 from Dokploy/feat/app-high-availability
feat(applications): high availability mode for stateless apps
2026-12-03 13:06:48 -06:00
Yash Kumar 5d1c04d3eb Merge pull request #6058 from PAtreju/fix/6029-monitoring-row-read-error
fix(monitoring): return error when container metrics row iteration fails
2026-12-03 21:48:54 +05:30
Narciso E. Núñez Arias ab45cea974 Merge pull request #6211 from Dokploy/feat/backup-encryption
feat(backups): encrypt S3 backups per destination
2026-12-03 12:13:01 -04:00
Narciso 47f0325c7a test(backups): create the retention temp dir in beforeAll so each test runs alone 2026-12-03 12:06:12 -04:00
Narciso 25c6183281 feat(backups): encrypt S3 backups per destination
Destinations get an optional encryption key. When enabled, database, compose, volume and web server backups are encrypted with rclone crypt before upload and stored with a .bin suffix. Restores, listing and retention decide per file, so existing unencrypted backups keep working and encrypted ones stay restorable after encryption is turned off.

The key is generated or pasted once and cannot be changed, is stored encrypted, and is excluded from service and backup queries. Encrypted files download as-is.

Closes #2926
2026-12-03 11:32:05 -04:00
Yash Kumar b1e9004a3f fix(monitoring): return row read errors from server metric readers too 2026-12-03 20:57:09 +05:30
Yash Kumar 49d4d85a46 Merge pull request #6057 from PAtreju/fix/mobile-settings
fix(ui): make settings pages responsive on phones
2026-12-03 13:58:24 +05:30
Yash Kumar 1156f89b80 Merge pull request #6056 from PAtreju/fix/mobile-infra-pages
fix(ui): make docker, monitoring and overview pages responsive on phones
2026-12-03 13:58:17 +05:30
Yash Kumar 937a7d766d Merge pull request #6055 from PAtreju/fix/mobile-service-pages
fix(ui): make service detail pages responsive on phones
2026-12-03 13:58:11 +05:30
Yash Kumar d149025336 Merge pull request #6054 from PAtreju/fix/mobile-shell
fix(ui): make app shell and navigation usable on phones
2026-12-03 13:58:06 +05:30
Yash Kumar e5057c40f5 fix(ui): fit setup server tabs on phones 2026-12-03 13:46:10 +05:30
Yash Kumar 9f7bc4ae15 fix(ui): keep requests toolbar on one row on desktop 2026-12-03 13:46:07 +05:30
Yash Kumar 1f5c95cc51 fix(ui): truncate long service names on phones 2026-12-03 13:46:05 +05:30
Yash Kumar 47f023086f fix(ui): keep first tabs reachable and env header inside the card 2026-12-03 13:46:01 +05:30
Mauricio Siu a968e8e0c8 fix(applications): check effective swarm mode, ports and placement before enabling HA 2026-12-02 23:05:44 -06:00
Mauricio Siu 3fcb9e5a23 feat(applications): show HA replica status per node and allow rebalancing 2026-12-02 17:56:05 -06:00
Mauricio Siu f10b601fbc feat(applications): add high availability mode for stateless apps
Runs at least 2 replicas spread across swarm nodes with stop-first rolling
updates and automatic rollback. Enabling requires no mounts, a pullable image,
2+ eligible nodes, a health check and no host-mode ports. Optionally keeps
replicas on worker nodes only.
2026-12-02 17:40:46 -06:00
Yash Kumar dbf8034dc2 Merge pull request #6194 from Dokploy/fix/6107-search-ranking
fix(search): rank global search results by relevance
2026-12-02 20:53:50 +05:30
Narciso 4b5b43ccba fix(deps): patch Dependabot alerts (cross-spawn, ws, engine.io, glob, minimatch, fast-xml-parser) 2026-12-02 10:58:00 -04:00
Yash Kumar c77d179026 fix(search): rank global search results by relevance
Co-authored-by: hamidzr <12127420+hamidzr@users.noreply.github.com>
2026-12-02 19:49:13 +05:30
Mauricio Siu 6e37e1a4d4 Merge pull request #6161 from Dokploy/feat/cloud-server-promotion-codes
feat(cloud-server): allow promotion codes in the cloud server checkout
2026-12-02 00:52:38 -06:00
Yash Kumar 4d5c07a21d Merge pull request #6164 from Dokploy/fix/4051-backup-prefix
fix(backups): keep the custom prefix as the top backup folder
2026-12-02 00:11:25 +05:30
Yash Kumar 9443a2b9c7 Merge pull request #5776 from mjafartp/fix/swarm-report-failed-rollouts
fix(swarm): report failed service rollouts
2026-12-02 00:08:42 +05:30
Yash Kumar 2b7b4adaca Merge pull request #5520 from meroo36/fix/request-log-sheet-scroll
fix(ui): make request log sheet scrollable and pad its footer
2026-12-01 23:54:19 +05:30
Yash Kumar 8d875bff7c Merge pull request #6168 from Dokploy/fix/4253-startup-exit
fix(server): exit with an error when Next.js fails to start
2026-12-01 23:32:39 +05:30
Yash Kumar e2153d3cc6 fix(backups): put the prefix first for volume backups and keep older restores working 2026-12-01 23:26:29 +05:30
Yash Kumar b927019c24 fix(backups): only restore files from the service's own backup folders 2026-12-01 23:12:12 +05:30
Yash Kumar 3cd64dab9b fix(backups): keep the custom prefix as the top backup folder 2026-12-01 22:56:32 +05:30
Yash Kumar 8f4596beda Merge canary into fix/sidebar-collapse-layout-shift 2026-12-01 21:57:26 +05:30
Yash Kumar 78581240f6 fix(server): exit when the server can't listen 2026-12-01 21:42:37 +05:30
Yash Kumar 902df62052 chore(server): drop startup comment 2026-12-01 20:55:24 +05:30
Yash Kumar 9146a3e6b2 fix(server): exit with an error when Next.js fails to start 2026-12-01 20:53:02 +05:30
Yash Kumar 412f9c5f4a Merge pull request #6167 from Dokploy/fix/deploy-stuck-running
fix(deployments): don't let old log cleanup leave a service stuck on running
2026-12-01 20:45:56 +05:30