Fix: Removing root privileges from stoic, creating and giving 777 to stoic folder

This commit is contained in:
2026-09-29 16:42:59 +03:00
parent 8fdb399386
commit 77c9117556
2 changed files with 8 additions and 7 deletions
+8
View File
@@ -27,6 +27,14 @@ mkdir -p storage/app/public storage/framework/cache storage/framework/sessions s
chown -R www-data:www-data storage bootstrap/cache
chmod -R 775 storage bootstrap/cache
# The stoic container writes thumbnails directly into this shared storage
# volume (see docker/stoic/stoic_config.yml's thumbs_path) as its own
# image user, which is neither www-data nor in its group — the chown/chmod
# above alone would lock it out. Scoped to just this one directory rather
# than opening up all of storage/ to every user.
mkdir -p storage/app/public/stoic
chmod 777 storage/app/public/stoic
# Composer packages (dev) may have just changed above, or (production) this is a
# freshly built image — either way, clear any cached config/routes/compiled views
# left over from a previous boot before anything below reads them. Production