diff --git a/.env.testing b/.env.testing index 79ffb865..19c2dd76 100644 --- a/.env.testing +++ b/.env.testing @@ -12,7 +12,6 @@ LOG_CHANNEL=stack LOG_STACK=single LOG_LEVEL=error -# Base de données PostgreSQL pour les tests DB_CONNECTION=pgsql DB_HOST=pgsql DB_PORT=5432 @@ -20,23 +19,16 @@ DB_DATABASE=testing DB_USERNAME=sail DB_PASSWORD=password -# Cache et sessions pour les tests CACHE_DRIVER=array SESSION_DRIVER=array QUEUE_CONNECTION=sync -# Mail en mode array pour les tests MAIL_MAILER=array -# Désactiver les services externes en mode test TELESCOPE_ENABLED=false RAY_ENABLED=false SENTRY_LARAVEL_DSN= INSPECTOR_ENABLE=false -# Optimisations pour les tests BCRYPT_ROUNDS=4 - -# Répertoires pour les tests (éviter les problèmes de permissions) VIEW_COMPILED_PATH=/tmp/views -LOG_CHANNEL=null \ No newline at end of file diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 6806d7d2..5ef96ce9 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -7,7 +7,7 @@ services: NODE_VERSION: 22 PHP_VERSION: 8.4 image: laravelcm/php - restart: unless-stopped + restart: always extra_hosts: - 'host.docker.internal:host-gateway' healthcheck: @@ -50,7 +50,7 @@ services: CACHE_STORE: ${CACHE_STORE} CACHE_PREFIX: ${CACHE_PREFIX} MEMCACHED_HOST: ${MEMCACHED_HOST} - REDIS_URL: ${REDIS_URL} + REDIS_CLIENT: 'phpredis' REDIS_HOST: ${REDIS_HOST} REDIS_PASSWORD: ${REDIS_PASSWORD} REDIS_PORT: ${REDIS_PORT} @@ -142,7 +142,7 @@ services: - dokploy-network schedule: image: laravelcm/php - restart: unless-stopped + restart: always command: ['artisan', 'schedule:run'] stop_signal: SIGTERM healthcheck: @@ -185,7 +185,7 @@ services: CACHE_STORE: ${CACHE_STORE} CACHE_PREFIX: ${CACHE_PREFIX} MEMCACHED_HOST: ${MEMCACHED_HOST} - REDIS_URL: ${REDIS_URL} + REDIS_CLIENT: 'phpredis' REDIS_HOST: ${REDIS_HOST} REDIS_PASSWORD: ${REDIS_PASSWORD} REDIS_PORT: ${REDIS_PORT} @@ -279,7 +279,7 @@ services: - laravelcm queue: image: laravelcm/php - restart: unless-stopped + restart: always command: - 'artisan' - 'queue:listen' @@ -329,7 +329,7 @@ services: CACHE_STORE: ${CACHE_STORE} CACHE_PREFIX: ${CACHE_PREFIX} MEMCACHED_HOST: ${MEMCACHED_HOST} - REDIS_URL: ${REDIS_URL} + REDIS_CLIENT: 'phpredis' REDIS_HOST: ${REDIS_HOST} REDIS_PASSWORD: ${REDIS_PASSWORD} REDIS_PORT: ${REDIS_PORT}