Docker images for Digbang PHP projects.
We highly recommend reviewing the examples found in the examples directory of this repository to facilitate implementation. While specifically crafted for Laravel applications, these examples are easily adaptable.
As a reference, and using PHP 8.3 as an example, when mentioning:
<container> is equals to 83-apache-php-1
<version> is equals to 8.3-apache
- Include the corresponding
<version>in the versions.txt file. - the
./buildcommand. docker pull php:<version>on each of the versions you want to rebuild.docker-compose up -d --build php. First in the php directory, then in php-dev directory.docker commit <container> digbang/php:<version>.docker push digbang/php:<version>.docker commit <container> digbang/php-dev:<version>.docker push digbang/php-dev:<version>.
As a reference, and using PHP 8.3 as an example, when mentioning:
<container> is equals to 83-fpm-php-1
<version> is equals to 8.3-fpm
- Include the corresponding
<version>in the versions.txt file. - the
./buildcommand. docker pull php:<version>on each of the versions you want to rebuild.docker-compose up -d --build php. First in the php directory, then in php-dev directory.docker commit <container> digbang/php:<version>.docker push digbang/php:<version>.docker commit <container> digbang/php-dev:<version>.docker push digbang/php-dev:<version>.
The digbang/php images do not include debugging tools or Composer, making them more suitable for production environments.
Cautiously note that this image has not yet been utilized in live deployments. Proceed with caution and use at your own risk.