fix(deployment): explicitly override build sections with null in production
Added 'build: null' to web, php, and queue-worker services in docker-compose.production.yml to explicitly remove build sections inherited from base config. This fixes 'lstat /home/deploy/deployment/stacks/application/docker/php: no such file or directory' error during deployment, as production servers only have docker-compose files, not build context. Registry-based deployment should pull pre-built images, not attempt to build on production server.
This commit is contained in:
@@ -12,8 +12,9 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
# Use pre-built image from registry
|
# Use pre-built image from registry (override build from base)
|
||||||
image: git.michaelschiemer.de:5000/framework:latest
|
image: git.michaelschiemer.de:5000/framework:latest
|
||||||
|
build: null # Explicitly remove build section from base
|
||||||
|
|
||||||
# Production restart policy
|
# Production restart policy
|
||||||
restart: always
|
restart: always
|
||||||
@@ -78,8 +79,9 @@ services:
|
|||||||
condition: service_started
|
condition: service_started
|
||||||
|
|
||||||
php:
|
php:
|
||||||
# Use pre-built image from registry
|
# Use pre-built image from registry (override build from base)
|
||||||
image: git.michaelschiemer.de:5000/framework:latest
|
image: git.michaelschiemer.de:5000/framework:latest
|
||||||
|
build: null # Explicitly remove build section from base
|
||||||
|
|
||||||
# Production restart policy
|
# Production restart policy
|
||||||
restart: always
|
restart: always
|
||||||
@@ -227,8 +229,9 @@ services:
|
|||||||
labels: "service,environment"
|
labels: "service,environment"
|
||||||
|
|
||||||
queue-worker:
|
queue-worker:
|
||||||
# Use pre-built image from registry
|
# Use pre-built image from registry (override build from base)
|
||||||
image: git.michaelschiemer.de:5000/framework:latest
|
image: git.michaelschiemer.de:5000/framework:latest
|
||||||
|
build: null # Explicitly remove build section from base
|
||||||
|
|
||||||
# Production restart policy
|
# Production restart policy
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user