Skip to content

Commit 69e1df6

Browse files
authored
Merge pull request #11 from mubbi/develop
Develop
2 parents a2baff0 + ec6e20d commit 69e1df6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

containers/docker-compose.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,11 @@ services:
112112
redis:
113113
condition: service_healthy
114114
healthcheck:
115-
test: |
116-
# Check if queue worker process is running and ready marker exists
117-
if [ -f /var/www/html/storage/laravel_ready ] && pgrep -f "queue:work" >/dev/null; then
118-
exit 0
119-
else
120-
exit 1
121-
fi
115+
test: ["CMD", "sh", "-c", "[ -f /var/www/html/storage/laravel_ready ] && grep -q queue:work /proc/*/cmdline"]
122116
interval: 30s
123117
timeout: 10s
124118
retries: 5
125-
start_period: 360s # Give 6 minutes for main app setup + queue worker startup
119+
start_period: 60s # Give 1 minute for queue worker startup since main app is already ready
126120
networks:
127121
- laravel_blog_api_network
128122

0 commit comments

Comments
 (0)