Skip to content

Commit 9737b8e

Browse files
authored
fix: docker composer deploy script (#419)
1 parent 03c1683 commit 9737b8e

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.env.testing

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,23 @@ LOG_CHANNEL=stack
1212
LOG_STACK=single
1313
LOG_LEVEL=error
1414

15-
# Base de données PostgreSQL pour les tests
1615
DB_CONNECTION=pgsql
1716
DB_HOST=pgsql
1817
DB_PORT=5432
1918
DB_DATABASE=testing
2019
DB_USERNAME=sail
2120
DB_PASSWORD=password
2221

23-
# Cache et sessions pour les tests
2422
CACHE_DRIVER=array
2523
SESSION_DRIVER=array
2624
QUEUE_CONNECTION=sync
2725

28-
# Mail en mode array pour les tests
2926
MAIL_MAILER=array
3027

31-
# Désactiver les services externes en mode test
3228
TELESCOPE_ENABLED=false
3329
RAY_ENABLED=false
3430
SENTRY_LARAVEL_DSN=
3531
INSPECTOR_ENABLE=false
3632

37-
# Optimisations pour les tests
3833
BCRYPT_ROUNDS=4
39-
40-
# Répertoires pour les tests (éviter les problèmes de permissions)
4134
VIEW_COMPILED_PATH=/tmp/views
42-
LOG_CHANNEL=null

docker-compose.prod.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
NODE_VERSION: 22
88
PHP_VERSION: 8.4
99
image: laravelcm/php
10-
restart: unless-stopped
10+
restart: always
1111
extra_hosts:
1212
- 'host.docker.internal:host-gateway'
1313
healthcheck:
@@ -50,7 +50,7 @@ services:
5050
CACHE_STORE: ${CACHE_STORE}
5151
CACHE_PREFIX: ${CACHE_PREFIX}
5252
MEMCACHED_HOST: ${MEMCACHED_HOST}
53-
REDIS_URL: ${REDIS_URL}
53+
REDIS_CLIENT: 'phpredis'
5454
REDIS_HOST: ${REDIS_HOST}
5555
REDIS_PASSWORD: ${REDIS_PASSWORD}
5656
REDIS_PORT: ${REDIS_PORT}
@@ -142,7 +142,7 @@ services:
142142
- dokploy-network
143143
schedule:
144144
image: laravelcm/php
145-
restart: unless-stopped
145+
restart: always
146146
command: ['artisan', 'schedule:run']
147147
stop_signal: SIGTERM
148148
healthcheck:
@@ -185,7 +185,7 @@ services:
185185
CACHE_STORE: ${CACHE_STORE}
186186
CACHE_PREFIX: ${CACHE_PREFIX}
187187
MEMCACHED_HOST: ${MEMCACHED_HOST}
188-
REDIS_URL: ${REDIS_URL}
188+
REDIS_CLIENT: 'phpredis'
189189
REDIS_HOST: ${REDIS_HOST}
190190
REDIS_PASSWORD: ${REDIS_PASSWORD}
191191
REDIS_PORT: ${REDIS_PORT}
@@ -279,7 +279,7 @@ services:
279279
- laravelcm
280280
queue:
281281
image: laravelcm/php
282-
restart: unless-stopped
282+
restart: always
283283
command:
284284
- 'artisan'
285285
- 'queue:listen'
@@ -329,7 +329,7 @@ services:
329329
CACHE_STORE: ${CACHE_STORE}
330330
CACHE_PREFIX: ${CACHE_PREFIX}
331331
MEMCACHED_HOST: ${MEMCACHED_HOST}
332-
REDIS_URL: ${REDIS_URL}
332+
REDIS_CLIENT: 'phpredis'
333333
REDIS_HOST: ${REDIS_HOST}
334334
REDIS_PASSWORD: ${REDIS_PASSWORD}
335335
REDIS_PORT: ${REDIS_PORT}

0 commit comments

Comments
 (0)