feat(storage): persist local images and unify clipboard copying

Add a private images disk with persistent container mounts and installation/upgrade setup, while routing avatar and project icon storage through it. Reuse the copy button component for API tokens and support clipboard copying through the shared helper.
This commit is contained in:
Andras Bacsai committed 2026-08-17 16:19:41 +02:00
1 parent 5872cc095c
commit a5dedc07cd
13 files changed
+79 -40

No files matched your search

+1
View File
@@ -229,6 +229,7 @@ if [ "$WARNING_SPACE" = true ]; then
fi
mkdir -p /data/coolify/{source,ssh,applications,databases,backups,services,proxy,sentinel}
mkdir -p /data/coolify/images
mkdir -p /data/coolify/ssh/{keys,mux}
mkdir -p /data/coolify/proxy/dynamic
+4
View File
@@ -170,6 +170,10 @@ else
log "Network 'coolify' already exists"
fi
mkdir -p /data/coolify/images/{avatars,project-icons}
chown -R 9999:root /data/coolify/images
chmod -R 700 /data/coolify/images
# Fix SSH directory ownership if not owned by container user UID 9999 (fixes #6621)
# Only changes owner — preserves existing group to respect custom setups
SSH_OWNER=$(stat -c '%u' /data/coolify/ssh 2>/dev/null || echo "unknown")