Skip to content

Starting point configuration for running (PHP) workers inside Docker containers with Supervisor.

License

Notifications You must be signed in to change notification settings

kconde2/docker-supervisor-php-workers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Starting point configuration for running (PHP) workers inside Docker containers with Supervisor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 66.8%
  • Dockerfile 33.2%