Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.15 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.15 KB

Docker - Supervisor config for (PHP) workers

Starting point configuration for running (PHP) workers inside Docker containers with Supervisor and Supervisorctl to manage them.

What's inside ?

  • PHP-CLI based Docker image with Supervisor installed: located in docker/php/Dockerfile.
  • Supervisor global configuration: located in docker/php/conf/supervisord.conf.
  • Supervisor programs configuration: located in docker/php/conf/supervisord-programs.conf.

How to use

Start container(s)

$ docker-compose build --pull
$ docker-compose up --build

List worker(s)

$ docker-compose exec php_worker supervisorctl status

Stop all worker(s)

$ docker-compose exec php_worker supervisorctl stop all

Start all worker(s)

$ docker-compose exec php_worker supervisorctl start all

Restart all worker(s)

$ docker-compose exec php_worker supervisorctl restart all

Stop container(s)

$ docker-compose stop

Cleanup container(s)

$ docker-compose down --volumes --remove-orphans