Latest PHP CLI with supervisord. Build for PHP frameworks (e.g. Laravel) with queue worker support
10K+
Supervisord (for running job workers)
Please note that the default behavior expects a Laravel app to be mounted within /var/www. You can change this by using a different command then the default command as described below.
latest Latest production release (8.0.x).php-8.0 Latest 8.0.x release.php-7.4 Latest 7.4.x release.php-7.3 Latest 7.3.x release.Quick run:
docker run -d \
--name taskrunner \
--mount type=bind,source="$(pwd)"/www,target=/var/www \
rhessing/php-supervisord
Different amount of processes:
docker run -d \
--name taskrunner \
-e PROCESSES=8 \
--mount type=bind,source="$(pwd)"/www,target=/var/www \
rhessing/php-supervisord
Different command:
docker run -d \
--name taskrunner \
-e COMMAND="php /var/www/app/bin/console messenger:consume async --time-limit=3600"
--mount type=bind,source="$(pwd)"/app,target=/var/www \
rhessing/php-supervisord
Different command and amount of processes:
docker run -d \
--name taskrunner \
-e PROCESSES=1 \
-e COMMAND="php /var/www/app/bin/console messenger:consume async --time-limit=3600"
--mount type=bind,source="$(pwd)"/app,target=/var/www \
rhessing/php-supervisord
If you want, you can use this image to debug your PHP code:
docker run -it \
--rm \
--name taskrunner \
--mount type=bind,source="$(pwd)"/app,target=/var/www \
rhessing/php-supervisord /bin/sh
Content type
Image
Digest
Size
84.9 MB
Last updated
over 5 years ago
docker pull rhessing/php-supervisord