Nice to see other people use my repo! Now this repo is using .env files so you don't need to manually update the scripts. Also docker-compose will read the env values.
@@lostTourist1 Thanks!! It runs well. But the domain ( myapp.local ) doesn't work. Do I miss anything or do I need to do something for the ".local" before we use ur repo way?
@@freeace00 It is same for me. First of all the nginx doesn't start and I think that is due to php admin and nginx port conflict, default had both at 80 and when I switched to 81 I can start. However, neither with 80 or 81 when I open myapp I can't connect, there is nothing no installation. Did you solve it? :)
May 1, 2020: I have this up and running on my macbook. The repo has probably been updated since you recorded this tutorial. The files now use environment variables. No need to do the search and replace (myapp to mytest). There are 2 .env files, (one in the root and the other in /src) to be edited. I also had to update compose on my mac from 7.1 to 7.2. It took me an hour to go through your 11 minute tutorial. I have some experience with docker and docker-compose. I have very little knowledge of Wordpress. before I noticed the /src .env file was missing I could log on to phpmyadmin and the localhost said 'error establishing a database connection'. Thank you! I appreciate the time you spent to make the video.
Yea not having enough experience I'm not going to waste time with this. Pity AY doesn't respond or why on earth he didn't just copy the files to his own repo in case of changes by the original author which don't line up with this video. Kinda stuffs it for those folk who really need it.
@@oflanagain Hindsight is 20/20 on this one. I should have copied the files to my own repo. I'll be doing a new Docker video in the future and will follow this advice. Thanks for the feedback!
The main .env file located on the same level as the docker-compose.yml file need to be updated from the second .env file in the src folder: After the main .env file is updated, edit the mysql section on the docker-compose.yml file: environment: - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD} - MYSQL_USER=${DB_USER} - MYSQL_PASSWORD=${DB_PASSWORD} - MYSQL_DATABASE=${DB_NAME}
Hey Alex, really great and video. As there are lots of development options. According to you, what is the best WordPress development environment? Looking forward to hearing from you.
So if you work on local now then you need to deploy it, do you have video for that tutorial how to free server like netlify or others to make portfolio?
Great Vid! Not sure if you are still replying to comments on here? I would like to set this up without using Roots/Bedrock and composer. Essentially keeping everything the same but Installing wp as standard in /web and without using composer?
Hello Sir, thankyou for the useful video. I just setup wordpress inside docker. However now I want to add webpack as another container. can you please help me how to add webpack config in yaml file
LBF's has 2 advantages over Docker: 1. Much easier to use 2. Can integrate directly with their hosting services However, I think Docker is useful because you can customize literally anything about it. So if you want Redis, you can install Redis. If you want to use Elasticsearch, you can install Elasticsearch. You don't have to have a hosting company that supports it, you just need to update your Docker container. Speaking of hosting, you can also host a Docker container on Digital Ocean for about $5.00/mo.
@WPCasts I can not find a single video about running an EXISTING Wordpress project locally. Mostly all the tutorial videos out there end up showing how to run a NEW Wordpress project locally, I have found that 'Local by Flywheel' has some options to migrate a project locally, but you have to pay, unless its a barebones site, then it's free. Can anyone point me to the right direction of a tutorial to run an existing Wordpress project locally. Many Thanks in advance.
Hi! I have a question, What is the best hosting for you? I want to chance my websites because my actual server is pretty slow. I've been researching what the best option (Patheon, Liquid Web, WPEngine, etc) But these are very expensive options. Digital Ocean is a good option?
Digital Ocean is great if you are comfortable managing servers. Since you're managing the server, it's significantly cheaper. So I generally use it on simple/smaller projects. For larger projects, I suggest Kinsta. They have really great support and are really knowledgeable about WP in general. They aren't cheap, but you get what you pay for.
Thank you so much for this video, Alex. This has really helped me fill a lot of holes in my understanding. I am still a bit stuck. Trying to set this up on a fresh Ubuntu Bionic machine which doesn't even have php installed, will I require to have a specific version of php (or is it php-cli) for this to work? (Bionic comes with a php-cli v7.2 in its repos as far as i can see). Any help greatly appreciated 🙏
An addition to the above would be the consideration that i was hoping to have the entire setup including php containerised. If that make sense at all, i don't know.
The container described in this video has been updated, so some of the information is no longer valid. I'll release an updated Docker/WordPress video in the future.
Nice to see other people use my repo! Now this repo is using .env files so you don't need to manually update the scripts. Also docker-compose will read the env values.
Thanks! working on setting it up now
@@lostTourist1 Thanks!!
It runs well. But the domain ( myapp.local ) doesn't work. Do I miss anything or do I need to do something for the ".local" before we use ur repo way?
@@freeace00 It is same for me. First of all the nginx doesn't start and I think that is due to php admin and nginx port conflict, default had both at 80 and when I switched to 81 I can start. However, neither with 80 or 81 when I open myapp I can't connect, there is nothing no installation. Did you solve it? :)
May 1, 2020: I have this up and running on my macbook. The repo has probably been updated since you recorded this tutorial. The files now use environment variables. No need to do the search and replace (myapp to mytest). There are 2 .env files, (one in the root and the other in /src) to be edited. I also had to update compose on my mac from 7.1 to 7.2. It took me an hour to go through your 11 minute tutorial. I have some experience with docker and docker-compose. I have very little knowledge of Wordpress. before I noticed the /src .env file was missing I could log on to phpmyadmin and the localhost said 'error establishing a database connection'. Thank you! I appreciate the time you spent to make the video.
Im having the same problem.
Yea not having enough experience I'm not going to waste time with this. Pity AY doesn't respond or why on earth he didn't just copy the files to his own repo in case of changes by the original author which don't line up with this video. Kinda stuffs it for those folk who really need it.
@@oflanagain Hindsight is 20/20 on this one. I should have copied the files to my own repo. I'll be doing a new Docker video in the future and will follow this advice. Thanks for the feedback!
The main .env file located on the same level as the docker-compose.yml file need to be updated from the second .env file in the src folder:
After the main .env file is updated, edit the mysql section on the docker-compose.yml file:
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
In the Modern Web Development, docker is really useful. Thanks Guy.
Why do we need ssl certificate for local development?
You'll probably need them to test integrations with payment systems etc.
when i compare Bitnami Wordpress stack and this solution on my very old proc. AMD Athlon X2 220 - real fastest speed local docker!
Thanks Alex!
Really excited about your WordPress course. Love your videos man.. 💪✌️
Thanks, I appreciate that! I am excited about it too!
@@WPCasts can't wait for the course!
Hello! Can you do 2022 update it is different than 3 years ago.
Interesting, More tutorials using podman , podman play kube, and how to crete a wp-cli container with the current wordpress container environment.
is there a way to to create a link to a live version of the dev version to show to client? like with Flywheel?
Hi please make video how to install WordPress using aws ecs service
Can you do a video on how to deploy using this method like the one you did with Trellis?
Hey Alex, really great and video.
As there are lots of development options. According to you, what is the best WordPress development environment?
Looking forward to hearing from you.
So if you work on local now then you need to deploy it, do you have video for that tutorial how to free server like netlify or others to make portfolio?
I would be interested in deployment as well
Great that this git project has SSL baked into it. My question do they also have a Linux version???
Great Vid! Not sure if you are still replying to comments on here? I would like to set this up without using Roots/Bedrock and composer. Essentially keeping everything the same but Installing wp as standard in /web and without using composer?
Hi Alex, we are coming to end of 2020 and still there are no courses on wpcasts.tv :(
I type cd cli
./create-cert.sh Then nothing happens ?
You need to add .env to the main directory of your application. From there you can run all the following commands starting at 6:31
very useful thanks Alex
so for docker, does the host OS being different than remote server matter? docker is still slightly confusing to me
Yes. Docker is useful but got some errors under win10. I give up for now. But your video is good. I sub. Thanks for good job
This is very useful info! Thanks a lot
You are super welcome! I’m glad you found it useful :)
@@WPCasts You have a very interesting approach to the WP subject in general and all the stuff that helps us to be a more modern WP developers.
Hello Sir, thankyou for the useful video. I just setup wordpress inside docker. However now I want to add webpack as another container. can you please help me how to add webpack config in yaml file
How can we manage this with CI/CD?
Hi, Thanks for the tutorial! I'm just wondering, are there any advantages to using this when comparing to Local by Flywheel?
Hey Alex, really enjoying your videos, thanks. How does using Docker compare with using Local by Flywheel? Any advantages/disadvantages?
LBF's has 2 advantages over Docker:
1. Much easier to use
2. Can integrate directly with their hosting services
However, I think Docker is useful because you can customize literally anything about it. So if you want Redis, you can install Redis. If you want to use Elasticsearch, you can install Elasticsearch. You don't have to have a hosting company that supports it, you just need to update your Docker container. Speaking of hosting, you can also host a Docker container on Digital Ocean for about $5.00/mo.
WPCasts Cool thanks.
@@WPCasts Whats the advantage of using docker for wordpress sites on digitalocean? thanks!
@@birdbrainsolutions6112 I am curious as well.
mkcert command not found after installing openssl, has anyone faced this issue?
nvm just gotta install mkcert by running brew install mkcert
@WPCasts I can not find a single video about running an EXISTING Wordpress project locally. Mostly all the tutorial videos out there end up showing how to run a NEW Wordpress project locally, I have found that 'Local by Flywheel' has some options to migrate a project locally, but you have to pay, unless its a barebones site, then it's free. Can anyone point me to the right direction of a tutorial to run an existing Wordpress project locally. Many Thanks in advance.
Create a new wordpress site, import existing wordpress site using Updraft Plus. Done.
It was so much needed
if u r using M1 Mac, proxy is not supported yet. ( docs.docker.com/docker-for-mac/apple-m1/ ). So myapp.local ( dev domain ) might not be working.
Hi! I have a question, What is the best hosting for you? I want to chance my websites because my actual server is pretty slow. I've been researching what the best option (Patheon, Liquid Web, WPEngine, etc) But these are very expensive options. Digital Ocean is a good option?
Digital Ocean is great if you are comfortable managing servers. Since you're managing the server, it's significantly cheaper. So I generally use it on simple/smaller projects.
For larger projects, I suggest Kinsta. They have really great support and are really knowledgeable about WP in general. They aren't cheap, but you get what you pay for.
@@WPCasts super, thanks!! I'm waiting for your courses. I hope they'll be available soon. Greetings!
Aldo Pineda I’m using racknerd. They have a special for about $30 a year. my.racknerd.com/aff.php?aff=835
Aldo Pineda You will need some Linux experience with setting up remote servers from scratch to use Racknerd.
Thank you so much for this video, Alex. This has really helped me fill a lot of holes in my understanding.
I am still a bit stuck. Trying to set this up on a fresh Ubuntu Bionic machine which doesn't even have php installed, will I require to have a specific version of php (or is it php-cli) for this to work? (Bionic comes with a php-cli v7.2 in its repos as far as i can see). Any help greatly appreciated 🙏
An addition to the above would be the consideration that i was hoping to have the entire setup including php containerised. If that make sense at all, i don't know.
You should use a. Env file instead of changing it everywhere
But why not just use local by flywheel? What's the benefit here? In Local I could achieve the same in fewer clicks. Or what am I not seeing?
The container described in this video has been updated, so some of the information is no longer valid. I'll release an updated Docker/WordPress video in the future.
Where is it? I never got the email.
you mean never?
When I want to create sh it says: ./create-cert.sh: line 11: ../.env: No such file or directory
This may be a bit late, but I also got this issue.
I just removed .example from the .env file and then ran ./create-cert.sh and it worked.
@@dnikolai I removed it but didn't work for me. Any other solution?
I can't get this to work for the life of me, it's so confusing
Thanks
You are welcome!
Looks like the tutorial is out of date, 😒😢
Can't get pass the start
Спасибо братан, все работает
Such a clumsy and needlessly advanced process.
outdated....