This is a Dockerfile/image to build a container for PHP-FPM base from (webdevops/php:8.1-alpine
) doc. The container also has the ability to setup with composer
Custom from original asapdotid/php
:
- Timezone (default: Asia/Jakarta)
- PHP-FPM
- Composer
Environment | Default | Description |
---|---|---|
APPLICATION_UID | 1000 | PHP-FPM UID (Effective user ID) |
APPLICATION_GID | 1000 | PHP-FPM GID (Effective group ID) |
TIMEZONE | Asia/Jakarta | Timezone for OS and PHP config |
APP_ENV | develpment | For build development or production |
SKIP_COMPOSER | 0 | Support for composer install in application mount |
Docker Tag | Git Release | Composer Version | PHP Version | Alpine Version |
---|---|---|---|---|
latest | Main Branch | 2.x.x | 8.1.13 | 3.17 |
1.0.0 | Main Branch | 2.x.x | 8.1.13 | 3.17 |
To pull from docker hub:
docker pull asapdotid/php:${IMAGE_VERSION}
To simply run the container:
docker run -d asapdotid/php:latest
You can then browse to http://<DOCKER_HOST>
to view the default install files. To find your DOCKER_HOST
use the docker inspect
to get the IP address (normally 172.17.0.2)
MIT / BSD
This Code was created in 2022 by Asapdotid.