The thinkphp5 image containes Nginx, PHP, PHP-FPM. It can facilitate you to quickly deploy small and medium php projects (including php web and php websocket).
The thinkphp5 image exposes port 80 and mounts /app directory.
$ docker run -p 80:80 -d your-pull-image
Then you can hit http://localhost or http://host-ip in your browser.
$ docker run -p 80:80 -v /proect_location:/app -d your-pull-image
The web homepage defaults to index.php and index.html. The configuration of thinkphp is configured in accordance with the thinkphp5 complete development manual. You can easily configure the mysql connection or redis connection of your project.
You can build again based on this image, change ENTRYPOINT to php-fpm7 && nginx && WebSocket script && tail -f /dev/null, If WebSocket is running in the foreground, ENTRYPOINT is php-fpm7 && nginx && websocket script.
MIT.
Content type
Image
Digest
Size
7.6 MB
Last updated
about 6 years ago
docker pull jervain/thinkphp5