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)
This commit is contained in:
@@ -150,8 +150,6 @@ services:
|
|||||||
- /home/deploy/michaelschiemer/current:/var/www/html:ro
|
- /home/deploy/michaelschiemer/current:/var/www/html:ro
|
||||||
# Mount storage directory as writable volume (overlays the read-only code mount)
|
# Mount storage directory as writable volume (overlays the read-only code mount)
|
||||||
- storage:/var/www/html/storage:rw
|
- 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/)
|
# Database service removed - using external PostgreSQL Stack (deployment/stacks/postgresql/)
|
||||||
# Connection via app-internal network using docker-compose.postgres-override.yml
|
# Connection via app-internal network using docker-compose.postgres-override.yml
|
||||||
@@ -252,8 +250,6 @@ services:
|
|||||||
- storage:/var/www/html/storage:rw
|
- storage:/var/www/html/storage:rw
|
||||||
# Mount var directory as writable volume for cache and logs (overlays read-only code mount)
|
# Mount var directory as writable volume for cache and logs (overlays read-only code mount)
|
||||||
- var-data:/var/www/html/var:rw
|
- 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:
|
environment:
|
||||||
- APP_ENV=production
|
- APP_ENV=production
|
||||||
@@ -327,8 +323,6 @@ services:
|
|||||||
- storage:/var/www/html/storage:rw
|
- storage:/var/www/html/storage:rw
|
||||||
# Mount var directory as writable volume for cache and logs (overlays read-only code mount)
|
# Mount var directory as writable volume for cache and logs (overlays read-only code mount)
|
||||||
- var-data:/var/www/html/var:rw
|
- 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:
|
environment:
|
||||||
- TZ=Europe/Berlin
|
- TZ=Europe/Berlin
|
||||||
|
|||||||
Reference in New Issue
Block a user