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:
@@ -27,7 +27,10 @@ start:
|
|||||||
stop:
|
stop:
|
||||||
docker compose down
|
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:
|
install-plugins:
|
||||||
docker exec -w /var/www/html intotheeast_grav php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y
|
docker exec -w /var/www/html intotheeast_grav php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ services:
|
|||||||
container_name: intotheeast_grav
|
container_name: intotheeast_grav
|
||||||
environment:
|
environment:
|
||||||
- GRAV_CHANNEL=beta
|
- GRAV_CHANNEL=beta
|
||||||
|
- APACHE_RUN_USER=#1000
|
||||||
|
- APACHE_RUN_GROUP=#1000
|
||||||
ports:
|
ports:
|
||||||
- "8081:80"
|
- "8081:80"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user