laravel queue service in docker container

I’ve 3 docker containers, php7 nginx and mariadb each are linked up and serve simple wordpress sites.

I’d like to add laravel project to the bunch. It all works great except laravel services that I need to run, e.g. queue listener and scheduler cron. How do you recommend dealing with these?

  • Do I really need docker swarm?
  • Docker Container Usage
  • How to start kubernetes service on NodePort outside service-node-port-range default range?
  • How to view log4j logs running inside a docker container?
  • Get docker swarm manager node from jenkins job
  • Not able to switch my Docker's automatic build repository to a private repository for an Organisation
  • Create shared package cache folder for a Docker container
  • Don't publish a docker image for each SBT subproject
  • Platform to test with docker containers in developer environment
  • Continuous delivery for Docker deployment with image already built
  • docker run program arguments in aws ecs
  • cant add cAdvisor application metric to Grafana
  • One Solution collect form web for “laravel queue service in docker container”

    You might want to consider using Docker Compose to orchestrate multiple containers together. For example, you’d have a Docker Compose file that declared a Docker network, and three containers:

    1. Message Queue
    2. Cron Scheduled Tasks
    3. Laravel application + PHP + Web Server

    As long as you add each of the containers to the same network, they’ll be able to communicate with each other. Another benefit of using Docker Compose is that scaling containers is much easier.

    Here’s the reference documentation for Docker Compose YAML files:

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.