feat: run Apache as host UID 1000 and add fix-perms target

APACHE_RUN_USER/GROUP=#1000 makes PHP/Apache write files owned by
the host user (mischa) instead of http. fix-perms target in setup
ensures ownership is correct after plugin install.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-18 23:34:57 +02:00
parent 9fd349e5ec
commit 8824f79c64
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -27,7 +27,10 @@ start:
stop:
docker compose down
setup: start install-plugins
setup: start install-plugins fix-perms
fix-perms:
docker exec intotheeast_grav chown -R 1000:1000 /var/www/html
install-plugins:
docker exec -w /var/www/html intotheeast_grav php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y
+2
View File
@@ -4,6 +4,8 @@ services:
container_name: intotheeast_grav
environment:
- GRAV_CHANNEL=beta
- APACHE_RUN_USER=#1000
- APACHE_RUN_GROUP=#1000
ports:
- "8081:80"
volumes: