generated from boboko/starter
FIx: Reverting back root for stoic
This commit is contained in:
@@ -133,6 +133,13 @@ services:
|
|||||||
|
|
||||||
stoic:
|
stoic:
|
||||||
image: ghcr.io/lexx27/stoic:latest
|
image: ghcr.io/lexx27/stoic:latest
|
||||||
|
# Runs as root — the app container's entrypoint.sh chowns the whole
|
||||||
|
# storage/ tree to www-data on every boot (docker/entrypoint.sh),
|
||||||
|
# and Stoic's own image user isn't www-data or in its group, so it
|
||||||
|
# can't write thumbnails into storage/app/public/stoic/ otherwise
|
||||||
|
# (libvips reports this as "Failed to write VipsImage to file").
|
||||||
|
# Same fix already applied in docker-compose.dev.yml.
|
||||||
|
user: root
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:${STOIC_PORT:-2727}:2727"
|
- "127.0.0.1:${STOIC_PORT:-2727}:2727"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -27,14 +27,6 @@ mkdir -p storage/app/public storage/framework/cache storage/framework/sessions s
|
|||||||
chown -R www-data:www-data storage bootstrap/cache
|
chown -R www-data:www-data storage bootstrap/cache
|
||||||
chmod -R 775 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
|
# 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
|
# freshly built image — either way, clear any cached config/routes/compiled views
|
||||||
# left over from a previous boot before anything below reads them. Production
|
# left over from a previous boot before anything below reads them. Production
|
||||||
|
|||||||
Reference in New Issue
Block a user