This is a Dockerfile to build an Ubuntu based container for NGINX and PHP-FPM. The container includes Composer and some settings optimization for Craft CMS and Craft Commerce. The default site contains Craft Server Check.
Docker Tag | NGINX Version | PHP Version | Composer Version |
---|---|---|---|
latest | 1.23.0 | 8.1.8 | 2.3.9 |
2.0.2 | 1.23.0 | 8.1.8 | 2.3.9 |
2.0.1 | 1.23.0 | 8.1.7 | 2.3.7 |
2.0.0 | 1.21.6 | 8.1.6 | 2.3.5 |
Docker Tag | NGINX Version | PHP Version | Composer Version |
---|---|---|---|
1.2.11 | 1.21.6 | 7.4.29 | 2.3.5 |
Docker Tag | NGINX Version | PHP Version | Composer Version |
---|---|---|---|
0.6.1 | 1.19.5 | 7.2.34 | 2.0.7 |
Build the container:
docker build -t binaryorigami/ubuntu-nginx-php .
Run the container:
docker run -p 80:80 -it binaryorigami/ubuntu-nginx-php
Default web root found at:
/usr/share/nginx/html
Default logs found at:
/var/log