From 1cb95c9cff8027ca99bdf780afaf36c0360dcb6d Mon Sep 17 00:00:00 2001 From: Arthur Monney Date: Tue, 16 Sep 2025 20:40:28 +0200 Subject: [PATCH] fix: docker container name --- docker-compose.prod.yml | 6 +++--- docker-compose.yml | 11 +++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index e29c8adc..89aa9343 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -11,7 +11,7 @@ services: extra_hosts: - 'host.docker.internal:host-gateway' healthcheck: - test: [ 'CMD', 'curl', '-f', 'http://localhost:${APP_PORT:-8080}/up' ] + test: ['CMD', 'curl', '-f', 'http://localhost:${APP_PORT:-8080}/up'] timeout: 30s environment: APP_NAME: ${APP_NAME} @@ -262,7 +262,7 @@ services: networks: - dokploy-network depends_on: - - universy-app + - laravelcm queue: image: laravelcm/php restart: unless-stopped @@ -276,7 +276,7 @@ services: - '--queue=default,media' stop_signal: SIGTERM healthcheck: - test: [ 'CMD', 'healthcheck-queue' ] + test: ['CMD', 'healthcheck-queue'] start_period: 10s environment: APP_NAME: ${APP_NAME} diff --git a/docker-compose.yml b/docker-compose.yml index 9bdc168d..67b6dbb9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -89,7 +89,7 @@ services: - traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https schedule: image: laravelcm/php - command: ['artisan', 'schedule:work'] + command: ['artisan', 'schedule:run'] stop_signal: SIGTERM healthcheck: test: ['CMD', 'healthcheck-schedule'] @@ -105,9 +105,12 @@ services: queue: image: laravelcm/php command: - - artisan - - 'queue:work' - - '--tries=3' + - 'artisan' + - 'queue:listen' + - 'database' + - '--sleep=10' + - '--quiet' + - '--force' - '--queue=default,media' stop_signal: SIGTERM healthcheck: