Sign inSign up

rainthief/dev_swoole

By rainthief

•Updated over 7 years ago

PHP Swoole with auto restart on file changes. Using php.ini-development. Built on offical PHP image.

Image
0

71

rainthief/dev_swoole repository overview

⁠Dev Swoole Container

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.

⁠Requirements

The entry point into your application must be a file named index.php at your projects root level.

⁠Usage

$ 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

⁠Volume mapping (-v)

Your local project folder must be mapped to /var/www on the container.

⁠Port mapping (-p)

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.

Tag summary

Content type

Image

Digest

Size

159.8 MB

Last updated

over 7 years ago

docker pull rainthief/dev_swoole:7.2