From ebba7f7ecbe21695111e0f393d40442d07b0f75c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 28 Apr 2023 11:00:21 +0200 Subject: [PATCH] updates --- app/Console/Kernel.php | 2 +- docker-compose.prod.yml | 4 ++++ docker/prod-ssu/etc/s6-overlay/s6-rc.d/queue-worker/run | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index dd11eeba3..04e3415d5 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -14,7 +14,7 @@ class Kernel extends ConsoleKernel */ protected function schedule(Schedule $schedule): void { - $schedule->job(new ContainerStatusJob)->everyFiveMinutes(); + $schedule->job(new ContainerStatusJob)->everyMinute(); $schedule->job(new DockerCleanupDanglingImagesJob)->everyMinute(); } diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 9be91bcb9..f584239ea 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -4,6 +4,10 @@ services: image: "ghcr.io/coollabsio/coolify:${APP_TAG:-4.0.0-nightly.0}" container_name: coolify volumes: + - type: bind + source: /data/coolify/source/.env + target: /var/www/html/.env + read_only: true - /data/coolify/deployments:/var/www/html/storage/app/deployments - /data/coolify/ssh-keys:/var/www/html/storage/app/ssh-keys - /data/coolify/proxy:/var/www/html/storage/app/proxy diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/queue-worker/run b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/queue-worker/run index cab060631..d7b456207 100644 --- a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/queue-worker/run +++ b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/queue-worker/run @@ -1,2 +1,2 @@ #!/command/execlineb -P -su - webuser -c "php /var/www/html/artisan queue:work --timeout=600 --rest=1 --memory=512" +su - webuser -c "php /var/www/html/artisan queue:work --timeout=600 --memory=512"