From 0c0c3ba845d5125b821ad8333dceadc4add809d9 Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Tue, 4 Nov 2025 16:24:06 +0100 Subject: [PATCH] fix(deployment): remove conflicting .env file mounts Remove separate .env file mounts from php, queue-worker, and scheduler services to fix read-only filesystem mount conflict. The .env file is already included in the rsync deployment at /home/deploy/michaelschiemer/current/.env and is accessible through the main application code mount. Separate file mounts are redundant and cause Docker mount conflicts because they attempt to create mount points inside read-only parent directories. Error fixed: - error mounting '/var/www/html/.env': read-only file system Services fixed: - php: removed .env mount (line 154) - queue-worker: removed .env mount (line 254) - scheduler: removed .env mount (line 327) --- docker-compose.production.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docker-compose.production.yml b/docker-compose.production.yml index ca538b63..db2b0182 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -150,8 +150,6 @@ services: - /home/deploy/michaelschiemer/current:/var/www/html:ro # Mount storage directory as writable volume (overlays the read-only code mount) - storage:/var/www/html/storage:rw - # Mount .env file from shared directory (production environment variables) - - /home/deploy/michaelschiemer/shared/.env.production:/var/www/html/.env:ro # Database service removed - using external PostgreSQL Stack (deployment/stacks/postgresql/) # Connection via app-internal network using docker-compose.postgres-override.yml @@ -252,8 +250,6 @@ services: - storage:/var/www/html/storage:rw # Mount var directory as writable volume for cache and logs (overlays read-only code mount) - var-data:/var/www/html/var:rw - # Mount .env file from shared directory (production environment variables) - - /home/deploy/michaelschiemer/shared/.env.production:/var/www/html/.env:ro environment: - APP_ENV=production @@ -327,8 +323,6 @@ services: - storage:/var/www/html/storage:rw # Mount var directory as writable volume for cache and logs (overlays read-only code mount) - var-data:/var/www/html/var:rw - # Mount .env file from shared directory (production environment variables) - - /home/deploy/michaelschiemer/shared/.env.production:/var/www/html/.env:ro environment: - TZ=Europe/Berlin