Skip to content

fix(compose): preserve raw remote mounts#75

Open
AminDhouib wants to merge 2 commits into
canaryfrom
port/upr-4795
Open

fix(compose): preserve raw remote mounts#75
AminDhouib wants to merge 2 commits into
canaryfrom
port/upr-4795

Conversation

@AminDhouib

Copy link
Copy Markdown
Member

Ports Dokploy#4795 by @yusoofsh

Addresses Dokploy#4794

What

Preserve raw remote compose mounts. When a compose service uses sourceType: "raw", addDomainToCompose now parses the saved raw composeFile directly (yaml.parse with maxAliasCount: 10000) instead of reading a potentially stale remote materialization over SSH. This preserves tmpfs declarations and long-syntax (type: volume / type: tmpfs) volume mounts through preview and stack deployment on remote servers.

Files

  • packages/server/src/utils/docker/domain.ts — add a sourceType === "raw" branch ahead of the serverId remote-load branch.
  • apps/dokploy/__test__/compose/domain/raw-compose.test.ts — new test asserting the raw source is used (execAsyncRemote not called) and mount syntax is preserved.

Adaptations

Clean cherry-pick (git cherry-pick -x e43d99e), no conflicts. yaml.parse is already imported in domain.ts and the sourceTypeCompose enum already includes "raw" on fork canary, so no adaptation was needed.

Verification

Clean cherry-pick onto origin/canary; change verified by inspection. Typecheck/tests run in CI (worktree has no installed node_modules for local runs). No drizzle migrations touched.

yusoofsh and others added 2 commits July 12, 2026 11:50
Use the saved raw compose source during conversion instead of reading a potentially stale remote materialization. Preserve tmpfs declarations and long-syntax volume mounts through preview and stack deployment.

Fixes Dokploy#4794

Co-Authored-By: Codex <noreply@openai.com>
(cherry picked from commit e43d99e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants