Skip to content

feat(mount): Add permissions to volumes mount#2517

Open
divaltor wants to merge 10 commits intoDokploy:canaryfrom
divaltor:mount-permissions
Open

feat(mount): Add permissions to volumes mount#2517
divaltor wants to merge 10 commits intoDokploy:canaryfrom
divaltor:mount-permissions

Conversation

@divaltor
Copy link
Copy Markdown
Contributor

@divaltor divaltor commented Sep 3, 2025

What is this PR about?

Add possibility to set custom permissions and mode to attached volume (default GID and UID are 1000:1000, read-only 644 permissions)

Checklist

Before submitting this PR, please make sure that:

Issues related (if applicable)

closes #497

Screenshots (if applicable)

image image

@divaltor divaltor marked this pull request as ready for review September 3, 2025 19:50
Mauricio Siu and others added 4 commits November 14, 2025 02:26
- Introduced new columns `uid` and `gid` of type integer, and `mode` of type text to the `mount` table to enhance permission management.
- Updated journal and snapshot files to reflect these schema changes for version 7.
…0121_stale_plazm

- Deleted the SQL migration file for `0121_stale_plazm` which included the addition of `uid`, `gid`, and `mode` columns to the `mount` table.
- Removed corresponding journal entry to maintain consistency in versioning.
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Mar 24, 2026
- Introduced new columns `uid`, `gid`, and `mode` to the `mount` table in the SQL migration file `0155_bouncy_jazinda.sql`.
- Updated the journal to include the new migration version.
- Created a new snapshot file `0155_snapshot.json` to reflect the current database schema.
- Updated the `mode` field in the mount schema to require a regex validation for octal values, ensuring it matches formats like 755 or 0644.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add customizable unix permissions and ownership for Docker Volume Mounts

2 participants