Docker image Nginx dan PHP-FPM yang ringan, optimal, dan siap menjalankan aplikasi PHP modern.
106
A Docker image that combines NGINX and PHP-FPM in a single container, providing a ready-to-use environment for running PHP web applications.
Built on Debian Linux, this image integrates NGINX as the web server and PHP-FPM as the FastCGI process manager, with Supervisor managing both services.
Pull the image:
docker pull kekasigen/nginx-php-fpm:latest
Run the container:
docker run -d \
--name nginx-php-fpm \
-p 8080:80 \
kekasigen/nginx-php-fpm:latest
Access the application at:
services:
web:
image: kekasigen/nginx-php-fpm:latest
container_name: nginx-php-fpm
ports:
- "8080:80"
volumes:
- ./app:/var/www/html
restart: unless-stopped
Start the service:
docker compose up -d
/var/www/html80Review the image configuration and source Dockerfile before mounting application files or changing service settings.
View container logs:
docker logs -f nginx-php-fpm
Check service status:
docker exec nginx-php-fpm supervisorctl status
Validate NGINX configuration:
docker exec nginx-php-fpm nginx -t
Check PHP version and installed extensions:
docker exec nginx-php-fpm php -v
docker exec nginx-php-fpm php -m
Docker Hub: https://hub.docker.com/r/kekasigen/nginx-php-fpm
GitHub: https://github.com/kekasicoid/Dockerfile-Collections/tree/main/nginx-php-fpm
Content type
Image
Digest
sha256:9b25237d1…
Size
204.1 MB
Last updated
5 days ago
docker pull kekasigen/nginx-php-fpm:8.4.27