From f97863af40fec12a348607ec75fe639be654eeac Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Tue, 4 Nov 2025 14:52:45 +0100 Subject: [PATCH] fix(deployment): add image references to docker-compose.production.yml Production deployment was failing because docker-compose.production.yml had build: sections but no image: references. This caused Docker Compose to attempt building on the server, which failed because the docker/ directory doesn't exist in the deployment location. Changes: - Add image: git.michaelschiemer.de:5000/framework:latest to web, php, and queue-worker services - Removed build: section from php service (no longer needed) - Remove test comment from ShowHome.php The deployment script's sed command (line 1259-1260 in build-image.yml) now successfully finds and updates the image: tags with the correct version from the registry. Related to: Production deployment error "docker/php: no such file or directory" --- docker-compose.production.yml | 15 ++++++++------- src/Application/Website/ShowHome.php | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-compose.production.yml b/docker-compose.production.yml index 83041e56..957e7acc 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -12,6 +12,9 @@ services: web: + # Use pre-built image from registry + image: git.michaelschiemer.de:5000/framework:latest + # Production restart policy restart: always @@ -75,6 +78,9 @@ services: condition: service_started php: + # Use pre-built image from registry + image: git.michaelschiemer.de:5000/framework:latest + # Production restart policy restart: always @@ -91,12 +97,6 @@ services: - CHOWN - DAC_OVERRIDE - # Override build args for production - build: - args: - - ENV=production - - COMPOSER_INSTALL_FLAGS=--no-dev --optimize-autoloader --classmap-authoritative - environment: - APP_ENV=production - APP_DEBUG=false @@ -227,7 +227,8 @@ services: labels: "service,environment" queue-worker: - # Use same build as php service (has application code copied) + # Use pre-built image from registry + image: git.michaelschiemer.de:5000/framework:latest # Production restart policy restart: always diff --git a/src/Application/Website/ShowHome.php b/src/Application/Website/ShowHome.php index 47c27cc8..7b475dd4 100644 --- a/src/Application/Website/ShowHome.php +++ b/src/Application/Website/ShowHome.php @@ -47,4 +47,3 @@ final readonly class ShowHome ); } } -// Production deployment test trigger