serve php mysql project with nginx as a docker container with basic authentication + docker-compose

Опубликовано: 22 Март 2026
на канале: medium guy
2,368
29

you got a php project with mysql as database
and you want to serve it using nginx with custom configuration
enable basic authentication
all as a docker container using a docker compose file

00:00 Intro
01:23 Description of docker image that will be used
02:38 Run nginx php docker image with default configurations
09:48 pass custom nginx configurations besides serving php project
12:42 Integrate php app with mysql served behind nginx
15:11 Add a php web application that connects to mysql database
18:06 Test a running php application with mysql served behind nginx
20:50 Outro


#docker
#nginx
#php
#mysql
#database
#configuracion
#api
#upstream
#load
#http
#container
#dockercompose
#server
#explanation
#web
#api
#gateway
#linux
#devops
#automation


USEFUL********
my repo link: https://github.com/sinawic/4yt/tree/m...
full nginx playlist:    • IP restriction rules in nginx web server i...  
nginx php docker hub: https://hub.docker.com/r/wyveo/nginx-...


PLAYLISTS*******
dockerization:    • dockerize node javascript angular app + do...  
kong api gateway:    • kong API gateway installation and basic co...  
linux:    • compile and run C / CPP code in linux usin...  
load balancing:    • how to setup and simulate a load balancer ...  
nginx:    • IP restriction rules in nginx web server i...  
minio s3:    • minio s3 object storage in docker environm...  


let's talk a bit :-*
LINKS********
  / sina.wic  
  / sinawic