Dockerize a PHP Application

  Рет қаралды 35,849

cavanex

2 жыл бұрын

In this video, we cover creating a docker image from a simple PHP application. We also cover setting environment variables, setting up a docker compose file for local development and adding modules.
Dockerfile Code Location: github.com/cavanex/KZbin/tree/main/Dockerize-PHP-Application
------------ Please consider subscribing -----------------
Email: contact@cavanex.com
Follow our Twitter: cavanex
Medium: medium.com/@cavanex
Website: cavanex.com

Пікірлер: 22
@secure73
@secure73 Жыл бұрын
thanks sir, it is one of the most practical lamp-docker tutorials i have ever seen. thanks for your nice job. well done.
@davidlepold
@davidlepold Жыл бұрын
Well done, practical, applicable, short, awesome
@vavik92
@vavik92 7 ай бұрын
Thank you very much))
@christinetimmons6838
@christinetimmons6838 2 жыл бұрын
Thank you so much!!! This is an AWESOME video!
@kayoutube690
@kayoutube690 Жыл бұрын
still need to run docker compose up instead of docker container run?
@jaymin5661
@jaymin5661 Жыл бұрын
What is in nysite.conf file ?
@MartinBorruel
@MartinBorruel 8 ай бұрын
sub folders won't work for me, do you have any tip for me?
@SumanMondal-qd1js
@SumanMondal-qd1js Жыл бұрын
Very helpful sir…❤❤ Please make some other videos related to software architecture
@monty7474
@monty7474 2 жыл бұрын
this is probably a silly question, but the DB environment variables is giving me an output "variable is not defined" when I build the image or try to run the container... I notice that those variables are being initialized in the compose.yml file but that doesn't seem to intialize the variables on my side... Global env varialbes also doesn't seem to work with it... can you hep me understand how to initialize these variables? or how to solve this problem... maybe at the very least, why this is occurring
@cavanex1082
@cavanex1082 2 жыл бұрын
Hi Monty, docker can be a bit unforgiving at times. You also need to be sure you add the environment variable values to your Dockerfile as well otherwise it won't be defined. At 6:45 you can see I have some lines with RUN echo "SetEnv.... (see video for full line or github link in description)
@jlpcpr
@jlpcpr Жыл бұрын
Thanks for this video!
@Fnighty
@Fnighty 2 жыл бұрын
Hi, the url provided doesn't have the docker-compose.yml file, regards!
@cavanex1082
@cavanex1082 2 жыл бұрын
Hi OnerTech, added the docker-compose.yml file. Good luck!
@AZAGamingTR
@AZAGamingTR 2 жыл бұрын
where is the conf file?
@abridgetool
@abridgetool 10 ай бұрын
why no more videos, it was good content.
@nirmallimbu
@nirmallimbu 2 жыл бұрын
Where is the docker file content, can you provide the source code. Ty
@cavanex1082
@cavanex1082 2 жыл бұрын
github.com/cavanex/KZbin/tree/main/Dockerize-PHP-Application
@dummyaccount8328
@dummyaccount8328 2 жыл бұрын
Should have given docker-compose.yml file also
@cavanex1082
@cavanex1082 2 жыл бұрын
The GitHub URL is in the description
@tdcrecords2023
@tdcrecords2023 9 ай бұрын
can someone help me? when I enter a url that isnt "/", example: localhost/login, the index.php is not accessed and i get 404 not found.
@DonProshetsky
@DonProshetsky Жыл бұрын
The docker build command fails for me with errors: => ERROR [ 4/11] ADD ./app /var/www/html 0.0s => ERROR [ 5/11] COPY ./app/my-site.conf /etc/apache2/sites-available/my-site.conf
@jeanyanez2725
@jeanyanez2725 11 ай бұрын
you have to create an app folder in the same path with a index.php and a .conf
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,4 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 19 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 4 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 111 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,4 МЛН