A lot of good info there. How does this setup handle changes to the WP database, such as changes in the wp_posts table? Where I work all the pages are stored in there rather than as .php files on the filesystem.
Hi. Thank you very much for this video, you inspire me to give a try. I'm not sure you'll have time to answer my question, I'm going to try. I had a problem at the Minute 15:21, using environment variable for the port. It works when I set PORT=8000 but it doesn't when I set the port in the file .env to different ports like PORT=1234 or PORT=8181. I edited the docker-compose.yml ad added in the env file variables for mql user and password and they work. I use wsl2 (debian) and docker desktop for windows, I fear there is limitation for the ports I can use. If you have any suggestion I would appreciate, otherwise, thank you again. _||_
Hey dude, excellent guide. 👍 Couple questions: 1. I setup environment variables, with different credentials and it appears that anything other than "wordpress" as the parameters throws a "Cannot connect to database" error. Can I not change these? 2. I created a `test.php` file, but attempts at accessing it result in redirecting to `wp-config.php` file. Why can't I access my test.php?
Hi Slug, sorry for the late reply. glad you found the tutorial well. 1. Wordpress is the name of the service and not the database credentials. Did you manage to solve your credential issue. 2. I know WP is funny sometimes with redirects if credentials or tables have capital letters. If you have any more issues ping me a message and I'll see if I can jump on to help you.
I had the same issue as you with "Cannot connect to database" What fixed it for me was specifying the name of the Database that you create in the DB environment in the Wordpress environment E.g if your MYSQL_DATABASE is called wp_db Then add WORDPRESS_DB_NAME: wp_db to the wordpress environment
@@kieran4338 Do you have a Ready to Start Github from the Docker Setup? I would like to Firok a good Git Project so that i can leatn easyer how to commit Docker and Wordpress on Digital Ozean.
Here's a quick question I'm hoping you can answer: In your DIGITALOCEAN_DEPLOY.yml file, you've added actions/checkout@main as a step, whereas in other tutorials, I've seen many people use actions/checkout@v2 - any idea what the difference is?
This is great for continuous integration and deployment of containers to a host. However I want to understand how I could continuous deploy using container registry rather than the source code. In production I want to have a container artifact tagged with a version that I can deploy rather than deploying the code directly. Any ideas?
Running docker-compose causes www-data to own all the files in the project's directory. (drwxr-xr-x 4 www-data www-data 4.0K Jun 22 07:01 wp-content) This means that when the checkout is done in github, the error is thrown "Error: EACCES: permission denied, unlink '/.env'. I have tried adding the user to www-data group to no avail. Do you know how to remedy this? Thank you for you tutorial!
I never comment... That was amazing! Thank you!
a great followup to on of the greatest teachers online, thanks my friend for your video.
Really good video. It will be nice to make a new version since there is a few changes but it stil relevant. Thanks
A lot of good info there. How does this setup handle changes to the WP database, such as changes in the wp_posts table? Where I work all the pages are stored in there rather than as .php files on the filesystem.
Thank you Tech Team! God bless!
thank you very match! very usefull example.
Excellent guide indeed! Would we need to 'clean-up' or prune the old docker images on the server?
Subscribe. Very recommended for my new project. Thanks a lot Sir.
Hi. Thank you very much for this video, you inspire me to give a try.
I'm not sure you'll have time to answer my question, I'm going to try.
I had a problem at the Minute 15:21, using environment variable for the port.
It works when I set PORT=8000 but it doesn't when I set the port in the file .env to different ports like PORT=1234 or PORT=8181.
I edited the docker-compose.yml ad added in the env file variables for mql user and password and they work.
I use wsl2 (debian) and docker desktop for windows, I fear there is limitation for the ports I can use.
If you have any suggestion I would appreciate, otherwise, thank you again. _||_
Do the new Docker images not include docker compose? I had to install it manually on Docker Ubuntu 22.04
Hey dude, excellent guide. 👍 Couple questions:
1. I setup environment variables, with different credentials and it appears that anything other than "wordpress" as the parameters throws a "Cannot connect to database" error. Can I not change these?
2. I created a `test.php` file, but attempts at accessing it result in redirecting to `wp-config.php` file. Why can't I access my test.php?
Hi Slug, sorry for the late reply. glad you found the tutorial well.
1. Wordpress is the name of the service and not the database credentials. Did you manage to solve your credential issue.
2. I know WP is funny sometimes with redirects if credentials or tables have capital letters.
If you have any more issues ping me a message and I'll see if I can jump on to help you.
I had the same issue as you with "Cannot connect to database"
What fixed it for me was specifying the name of the Database that you create in the DB environment in the Wordpress environment
E.g if your MYSQL_DATABASE is called wp_db
Then add WORDPRESS_DB_NAME: wp_db to the wordpress environment
@@kieran4338 Thank you for commenting this
@@kieran4338
Do you have a Ready to Start Github from the Docker Setup? I would like to Firok a good Git Project so that i can leatn easyer how to commit Docker and Wordpress on Digital Ozean.
Here's a quick question I'm hoping you can answer:
In your DIGITALOCEAN_DEPLOY.yml file, you've added actions/checkout@main as a step, whereas in other tutorials, I've seen many people use actions/checkout@v2 - any idea what the difference is?
@v2 is a production release, more stable. @main is continually updated and can contain bugs, basically a beta!
This is great for continuous integration and deployment of containers to a host. However I want to understand how I could continuous deploy using container registry rather than the source code. In production I want to have a container artifact tagged with a version that I can deploy rather than deploying the code directly. Any ideas?
Hello Sir, is it possible to setup docker compose github action with heroku.. ❤️👍
Running docker-compose causes www-data to own all the files in the project's directory.
(drwxr-xr-x 4 www-data www-data 4.0K Jun 22 07:01 wp-content)
This means that when the checkout is done in github, the error is thrown "Error: EACCES: permission denied, unlink '/.env'. I have tried adding the user to www-data group to no avail. Do you know how to remedy this? Thank you for you tutorial!
kinda blurry