fix: revert to FastCGI TCP — Unix socket requires root on FPM master

Unix socket volume was root-owned, FPM running as uid 1000 couldn't
create the socket. TCP app:9000 works without privilege changes and
has negligible performance difference in a local Docker network.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Simon Kuehn 2026-05-17 18:03:06 +00:00
parent 7c402b5c38
commit 2914d76b05
3 changed files with 1 additions and 5 deletions

View file

@ -8,7 +8,6 @@ services:
HOME: /tmp HOME: /tmp
volumes: volumes:
- .:/var/www - .:/var/www
- php_socket:/var/run/php
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy
@ -25,7 +24,6 @@ services:
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile - ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
- .:/var/www - .:/var/www
- caddy_data:/data - caddy_data:/data
- php_socket:/var/run/php
depends_on: depends_on:
- app - app
@ -122,7 +120,6 @@ volumes:
postgres_data: postgres_data:
redis_data: redis_data:
caddy_data: caddy_data:
php_socket:
networks: networks:
default: default:

View file

@ -17,4 +17,3 @@ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /var/www WORKDIR /var/www
COPY docker/app/php.ini /usr/local/etc/php/conf.d/app.ini COPY docker/app/php.ini /usr/local/etc/php/conf.d/app.ini
COPY docker/app/www.conf /usr/local/etc/php/php-fpm.d/www.conf

View file

@ -4,7 +4,7 @@
ss3k.schaunwama.de { ss3k.schaunwama.de {
root * /var/www/public root * /var/www/public
php_fastcgi unix//var/run/php/php-fpm.sock php_fastcgi app:9000
file_server file_server
encode gzip encode gzip