docker-phpfpm
Docker PHP FPM with lean alpine base. The download size is just about ~150MB.
It contains PHP8.1.11 and PHP8.0.24 with plenty of common and useful extensions.
You can also continue using adhocore/phpfpm:7.4
for PHP7.4.30.
If you are looking for a complete local development stack then check
adhocore/lemp
.
It comes prepackaged with composer
- both v1 and v2
Use composer2
command for v2 and composer
for v1.
Usage
To pull latest image:
docker pull adhocore/phpfpm:8.0
# or for alpine 3.13
docker pull adhocore/phpfpm:8.0-alp3.13
# or for php 7.4
docker pull adhocore/phpfpm:7.4
# or for php 7.4 on alpine 3.13
docker pull adhocore/phpfpm:7.4-alp3.13
To use in docker-compose
# ./docker-compose.yml
version: '3'
services:
phpfpm:
image: adhocore/phpfpm:8.0
container_name: phpfpm
volumes:
- ./path/to/your/app:/var/www/html
# Here you can also volume php ini settings
# - /path/to/zz-overrides:/usr/local/etc/php/conf.d/zz-overrides.ini
ports:
- 9000:9000
environment:
# ...
Composer
Latest…