diff --git a/.env.example b/.env.example index b4b0eda..03b9d8d 100644 --- a/.env.example +++ b/.env.example @@ -4,6 +4,13 @@ APP_KEY= APP_DEBUG=true 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_FALLBACK_LOCALE=en APP_FAKER_LOCALE=en_US diff --git a/docker-compose.dokploy.yml b/docker-compose.dokploy.yml index 4cdbd1d..1aa789f 100644 --- a/docker-compose.dokploy.yml +++ b/docker-compose.dokploy.yml @@ -45,14 +45,14 @@ x-app-build: &app-build PHP_VERSION: ${PHP_VERSION:-8.3} NODE_VERSION: ${NODE_VERSION:-22} cache_from: - - type=registry,ref=${APP_IMAGE_CACHE:-fotospiel-app:buildcache} + - type=local,src=${BUILD_CACHE_DIR:-/var/lib/fotospiel-buildcache} 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: app: build: *app-build - image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} + image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest} env_file: - path: .env environment: @@ -140,7 +140,7 @@ services: photobooth-ftp: build: 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: - path: .env environment: @@ -173,7 +173,7 @@ services: restart: unless-stopped queue: - image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} + image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest} env_file: - path: .env command: /var/www/html/scripts/queue-worker.sh default @@ -195,7 +195,7 @@ services: restart: unless-stopped media-storage-worker: - image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} + image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest} env_file: - path: .env command: /var/www/html/scripts/queue-worker.sh media-storage @@ -219,7 +219,7 @@ services: restart: unless-stopped scheduler: - image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} + image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest} env_file: - path: .env command: php artisan schedule:work @@ -240,7 +240,7 @@ services: restart: unless-stopped horizon: - image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest} + image: ${APP_IMAGE_REPO:-fotospiel-app}:${APP_IMAGE_TAG:-latest} env_file: - path: .env command: /var/www/html/scripts/horizon.sh