Skip to content

File mounts in Compose do not work #2434

Description

@luixo

To Reproduce

  1. Create a Compose
  2. Go to Advanced tab, Volumes
  3. Add a new File Mount (others are not available), note that you can't choose Mount Path (though you can forge a request to change it via HTTP)
  4. Redeploy your compose
  5. Open compose shell

Current vs. Expected behavior

Expected: file is mounted (not sure where should it mount with / Mount Path, but I did change it via HTTP and still couldn't find it)
Actual: file can't be found nowhere

Provide environment information

Dokploy version: v0.24.12

Which area(s) are affected? (Select all that apply)

Docker Compose

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

Inspecting Docker container, I didn't find any mounts. Not sure that's how it's done though, I'm not proficient enough with Docker.

Let me know where's the logic for fecthing mounts and wiring them up to the compose file, I might fix it.

Will you send a PR to fix it?

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions