PHP Swoole with auto restart on file changes. Using php.ini-development. Built on offical PHP image.
71
PHP Swoole with auto restart on file changes. Using php.ini-development. Built on official PHP image.
This container will serve one project only. It will watch this project and sub folders for any changes to /\.php$/ files and reload upon these events.
The php.ini is using all defaults for development. This container is not for production.
The entry point into your application must be a file named index.php at your projects root level.
$ docker pull rainthielf/dev_swoole:7.2
$ docker run --rm --name php -p <local port>:<container port> -v <local project folder>:/var/www/ rainthief/dev_swoole:7.2
Your local project folder must be mapped to /var/www on the container.
As your swoole code can be used to instruct any port to listen upon, bind this port from your local machine to your container. For example for port 8080 -p 8080:8080.
Content type
Image
Digest
Size
159.8 MB
Last updated
over 7 years ago
docker pull rainthief/dev_swoole:7.2