How to run PHP for Nginx with PHP-FPM using Docker and docker-compose

preview_player
Показать описание
Hello and welcome back! In this short tutorial I will show you how to run php scripts using nginx + phpfmp with docker.

📖👤 WHO AM I?
My name is Andrew. I am software developer from Ukraine🇺🇦 who lives in Poland 🇵🇱. I started programming in long 2012. I am doing web and like to share things on youtube. On my channel you will videos both about technical and personal things about me. Join me!

SOCIAL NETWORKS

#php #nginx #servers #docker #dockercompose
Рекомендации по теме
Комментарии
Автор

Thanks for the video!

I have a task creating php-apache container(php8.1 apache2.4), so i used base image php:8.1-apache, then I was asked to add a php-fpm feature in the same dockerfile. I added a line RUN apt update && apt install -y php-fpm, but it didn't work since my php version is 8.1 and the php-fpm package inside of container was 8.2. I was told use php8.1 version but I couldn't find a php-rpm8.1 package.. any idea? I don't know if this approach is right since I'm very new to docker.

KIHUNKIM-dx