switch away from registry usage for docker builds

This commit is contained in:
Codex Agent
2025-12-21 19:11:01 +01:00
parent 6ee40745ca
commit 41d29eb7d3
2 changed files with 15 additions and 8 deletions

View File

@@ -4,6 +4,13 @@ APP_KEY=
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://localhost APP_URL=http://localhost
# Docker image tags (Dokploy/local build)
APP_IMAGE_REPO=fotospiel-app
APP_IMAGE_TAG=latest
BUILD_CACHE_DIR=/var/lib/fotospiel-buildcache
PHOTOBOOTH_CONTROL_IMAGE_REPO=fotospiel-photobooth-control
PHOTOBOOTH_CONTROL_IMAGE_TAG=latest
APP_LOCALE=en APP_LOCALE=en
APP_FALLBACK_LOCALE=en APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US APP_FAKER_LOCALE=en_US

View File

@@ -45,14 +45,14 @@ x-app-build: &app-build
PHP_VERSION: ${PHP_VERSION:-8.3} PHP_VERSION: ${PHP_VERSION:-8.3}
NODE_VERSION: ${NODE_VERSION:-22} NODE_VERSION: ${NODE_VERSION:-22}
cache_from: cache_from:
- type=registry,ref=${APP_IMAGE_CACHE:-fotospiel-app:buildcache} - type=local,src=${BUILD_CACHE_DIR:-/var/lib/fotospiel-buildcache}
cache_to: cache_to:
- type=registry,ref=${APP_IMAGE_CACHE:-fotospiel-app:buildcache},mode=max - type=local,dest=${BUILD_CACHE_DIR:-/var/lib/fotospiel-buildcache},mode=max
services: services:
app: app:
build: *app-build build: *app-build
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest}
env_file: env_file:
- path: .env - path: .env
environment: environment:
@@ -140,7 +140,7 @@ services:
photobooth-ftp: photobooth-ftp:
build: build:
context: ./docker/photobooth-control context: ./docker/photobooth-control
image: registry.internal:5443/${PHOTOBOOTH_CONTROL_IMAGE:-fotospiel-photobooth-control:latest} image: ${PHOTOBOOTH_CONTROL_IMAGE_REPO:-fotospiel-photobooth-control}:${PHOTOBOOTH_CONTROL_IMAGE_TAG:-latest}
env_file: env_file:
- path: .env - path: .env
environment: environment:
@@ -173,7 +173,7 @@ services:
restart: unless-stopped restart: unless-stopped
queue: queue:
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest}
env_file: env_file:
- path: .env - path: .env
command: /var/www/html/scripts/queue-worker.sh default command: /var/www/html/scripts/queue-worker.sh default
@@ -195,7 +195,7 @@ services:
restart: unless-stopped restart: unless-stopped
media-storage-worker: media-storage-worker:
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest}
env_file: env_file:
- path: .env - path: .env
command: /var/www/html/scripts/queue-worker.sh media-storage command: /var/www/html/scripts/queue-worker.sh media-storage
@@ -219,7 +219,7 @@ services:
restart: unless-stopped restart: unless-stopped
scheduler: scheduler:
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest}
env_file: env_file:
- path: .env - path: .env
command: php artisan schedule:work command: php artisan schedule:work
@@ -240,7 +240,7 @@ services:
restart: unless-stopped restart: unless-stopped
horizon: horizon:
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest}
env_file: env_file:
- path: .env - path: .env
command: /var/www/html/scripts/horizon.sh command: /var/www/html/scripts/horizon.sh