fix: unify Docker registry URLs to localhost:5000
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Successful in 27s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Successful in 13s
🚀 Build & Deploy Image / Build Docker Image (push) Successful in 4m6s
Security Vulnerability Scan / Check for Dependency Changes (push) Successful in 27s
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Successful in 56s
Security Vulnerability Scan / Composer Security Audit (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Failing after 56s
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped

- Change docker-compose.staging.yml: git.michaelschiemer.de:5000 -> localhost:5000
- Update deploy-image.yml playbook to:
  - Pull images from registry.michaelschiemer.de (source registry)
  - Tag and push to localhost:5000 (local registry) for local containers
  - Remove hardcoded git.michaelschiemer.de:5000 logic
  - Use local_registry from compose files for deployment

This ensures:
- Workflow pushes to registry.michaelschiemer.de (external, HTTPS)
- Containers use localhost:5000 (local, faster, no HTTPS overhead)
- Consistent registry usage across staging and production
This commit is contained in:
2025-11-09 00:29:20 +01:00
parent bb5284220f
commit 51fda6b732
2 changed files with 59 additions and 42 deletions

View File

@@ -11,11 +11,12 @@
services:
# PHP-FPM Application Runtime
staging-app:
image: git.michaelschiemer.de:5000/framework:latest
image: localhost:5000/framework:latest
container_name: staging-app
restart: unless-stopped
networks:
- staging-internal
- postgres-staging-internal
environment:
- TZ=Europe/Berlin
- APP_ENV=staging
@@ -28,8 +29,8 @@ services:
- GIT_TOKEN=${GIT_TOKEN:-}
- GIT_USERNAME=${GIT_USERNAME:-}
- GIT_PASSWORD=${GIT_PASSWORD:-}
# Database (can share with production or use separate)
- DB_HOST=${DB_HOST:-postgres}
# Database - using separate staging database
- DB_HOST=${DB_HOST:-postgres-staging}
- DB_PORT=${DB_PORT:-5432}
- DB_DATABASE=${DB_DATABASE:-michaelschiemer_staging}
- DB_USERNAME=${DB_USERNAME}
@@ -208,7 +209,7 @@ services:
condition: service_started
# Nginx Web Server
staging-nginx:
image: git.michaelschiemer.de:5000/framework:latest
image: localhost:5000/framework:latest
container_name: staging-nginx
restart: unless-stopped
networks:
@@ -344,17 +345,18 @@ services:
# Queue Worker (Background Jobs)
staging-queue-worker:
image: git.michaelschiemer.de:5000/framework:latest
image: localhost:5000/framework:latest
container_name: staging-queue-worker
restart: unless-stopped
networks:
- staging-internal
- postgres-staging-internal
environment:
- TZ=Europe/Berlin
- APP_ENV=staging
- APP_DEBUG=${APP_DEBUG:-true}
# Database (can share with production or use separate)
- DB_HOST=${DB_HOST:-postgres}
# Database - using separate staging database
- DB_HOST=${DB_HOST:-postgres-staging}
- DB_PORT=${DB_PORT:-5432}
- DB_DATABASE=${DB_DATABASE:-michaelschiemer_staging}
- DB_USERNAME=${DB_USERNAME}
@@ -399,17 +401,18 @@ services:
# Scheduler (Cron Jobs)
staging-scheduler:
image: git.michaelschiemer.de:5000/framework:latest
image: localhost:5000/framework:latest
container_name: staging-scheduler
restart: unless-stopped
networks:
- staging-internal
- postgres-staging-internal
environment:
- TZ=Europe/Berlin
- APP_ENV=staging
- APP_DEBUG=${APP_DEBUG:-true}
# Database (can share with production or use separate)
- DB_HOST=${DB_HOST:-postgres}
# Database - using separate staging database
- DB_HOST=${DB_HOST:-postgres-staging}
- DB_PORT=${DB_PORT:-5432}
- DB_DATABASE=${DB_DATABASE:-michaelschiemer_staging}
- DB_USERNAME=${DB_USERNAME}
@@ -471,6 +474,9 @@ networks:
external: true
staging-internal:
driver: bridge
postgres-staging-internal:
external: true
name: postgres-staging-internal
app-internal:
external: true
name: app-internal