Laravel Docker Lessons · Lesson 11
Set up Redis for Laravel queues and cache with Docker, PHPRedis, a real queued job, TTL cache results, worker commands and a Mailtrap queue option.
This written tutorial follows the actual lesson-11 source snapshot . The written guide is ready before the video recording.
Continue from Lesson 10 , or browse the complete blog .
This lesson adds Redis 7.4, the native PHPRedis extension and an optional Compose override that changes Laravel's queue and cache stores to Redis. MySQL still stores users, sessions and failed-job records. A small queued job writes a result into Redis cache, so you can verify the complete flow without SMTP credentials or sending email.
Complete file checklist before running commands
Keep docker-compose.yaml as the base and create docker-compose.redis.yaml as a separate additive override. Pass both files to every command.…