From 8824f79c64077e332396f130770ce8206b2cfc49 Mon Sep 17 00:00:00 2001 From: Mischa Date: Thu, 18 Jun 2026 23:34:57 +0200 Subject: [PATCH] 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 --- Makefile | 5 ++++- docker-compose.yml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 73bfad5..f64dd6e 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 560ef93..ab2789c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: