hi guys this is a quick video about how to install magento 2 in
docker compose environment now this is not a video about the docker compose,
I assume you already have some kind, some level of understanding about docker compose
here I have my files list in docker folder and my volumes are mounted to www folder
if you look at the .env file you can see the parts to projects, project domain, and log files. I have
ports for each service like a mysql, apache, and phpmyadmin, and then if you go
to the docker compose .yaml file you can see my apache services
and pass the environment variables to dockerfile and config files
Now one thing to note is the proxy pass match and it's important you assign your docker service name
to the port so it has to be like fastcgi php. That php is the actual
docker service name in the docker compose file here i have phpmyadmin service
and then and then elasticsearch and then fbmx debug service
then I have my mysql and network services and then
and finally, magenta 2 will be installed in the www folder after that go to
your docker folder and then type docker-compose --build, this will build the docker containers
once you are inside PHP container create the Magento project using composer create project this
will install magento files in your container use the magento key to install the magento packages
after that you can use magento setup install CLI command to install magento this will take one
make sure you add your magento domain to your host file
in this case it's mentioned to docker and then the port number
I've removed the two-factor authentication so I can
log in to Magento admin and then do some tests
if I go to my browser and then my magento URL it should be ready now make sure to run
bin/magento setup upgrade and use the magento developer mode
that's it for this video I'll put all the links to all the docker files in the description
please subscribe to my channel so you'll get noticed on my next video thanks