Build a solid WordPress dev environment with Docker

Build a solid WordPress dev environment with Docker

Andrew Schmelyun

3 года назад

77,462 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Andrew Schmelyun
Andrew Schmelyun - 23.09.2023 08:03

Hey new viewers! If you would like to see more content on WordPress and Docker, let me know what ideas you have in mind or what you'd like to learn more about.

Ответить
Captain Pumpkinhead
Captain Pumpkinhead - 16.11.2023 08:48

I really appreciate how you let stuff break, and then went back and showed how to fix those things!! I thought that was really helpful! Thank you!!!

Ответить
alex mims
alex mims - 15.11.2023 05:26

I got 403 error until I modified the docker-compose.yml to this:

version: '3.9'

services:
nginx:
image: nginx:stable-alpine
ports:
- 80:80
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./wordpress:/var/www/html:delegated
mysql:
image: mysql:latest
environment:
MYSQL_DATABASE: wp
MYSQL_USER: wp
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
php:
image: php:7.4-fpm-alpine
volumes:
- ./wordpress:/var/www/html:delegated
depends_on:
- mysql
command: sh -c "docker-php-ext-install mysqli && php-fpm"

Ответить
Twisted Coil
Twisted Coil - 12.11.2023 02:23

My next son will be named "Andrew" 😂 .... THX a LOT!!!!

Ответить
Enrique Torrez
Enrique Torrez - 02.11.2023 09:28

This is the best tutorial that I found about wordpress docker. Thank you for this tutorial, I will continue watching you other videos.

Ответить
bluescorpian519
bluescorpian519 - 31.10.2023 11:48

very helpfull, explained very well how everything works. thanks

Ответить
KarlSon
KarlSon - 20.10.2023 19:41

Don't work on windows ((

Ответить
Shahbaz Ahmad Siddiqui
Shahbaz Ahmad Siddiqui - 22.09.2023 00:44

This is how a tutorial video should be made. Kudos and many many thanks to Andrew.

Ответить
Ole Kristian Møller-Hansen
Ole Kristian Møller-Hansen - 12.09.2023 15:38

Hmmm, seems promising, but after creating the nginx/default.conf file and specifying it in the docker-compose.yml file, nginx goes from the default Welcome to nginx page to just showing a generic 403 Access Forbidden page.

Ответить
Jet Rex
Jet Rex - 08.09.2023 19:53

hi guys, does anyone know how can I fix the add plugins page. I am unable to download and install plugins. This is also the same in cli command. TIA

Ответить
Clifford Hepplethwaite
Clifford Hepplethwaite - 14.08.2023 00:14

Thank you for this video!

Ответить
Dion Oliphant
Dion Oliphant - 01.08.2023 22:19

I get an issue with adding a post(API JSON error) as well as when updating plugins and worpress as well as themes - FTP details are requested.

Ответить
Omerta
Omerta - 29.07.2023 15:21

Awesome! How we can create multiple WordPress sites on local this way?

Ответить
Mahender Tirumala
Mahender Tirumala - 19.07.2023 23:10

do you have single Dockerfile with alpine base image installed with wordpress,php,nginx?

Ответить
Marcin
Marcin - 02.07.2023 01:39

Where is the github repo for this?

Ответить
Lucas Torres
Lucas Torres - 30.06.2023 15:07

That video helped me a lot, thanks, man!

Ответить
Ade Thompson
Ade Thompson - 10.06.2023 22:47

Really clear and easy to follow tutorial, many thanks. subscribed!

Ответить
Cyrille Chidiac
Cyrille Chidiac - 06.05.2023 19:52

no matter what I do, it doesn't work
from the very first step where you put in your domain name and it works... I don't have that

Ответить
CANAL 16
CANAL 16 - 30.04.2023 15:04

my web browser Edge gives me the 403 error forbidden. how do i resolve this ?

Ответить
Caponero
Caponero - 12.04.2023 19:10

Is possible to use Dbeaver for this enviroment? thank you in advance

Ответить
Md.Abdullah al Mamun
Md.Abdullah al Mamun - 02.03.2023 09:56

Hi i follow your step but it's not working. show "403 Forbidden". my os is Ubuntu 20.04

Ответить
h3x
h3x - 12.02.2023 16:24

Andrew, this was a great tutorial. Keep up the good work, appreciate you putting in the time for this.

Ответить
Nicolas GRENIER
Nicolas GRENIER - 15.01.2023 15:23

Error establishing a database connection :
"This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at mysql could not be established. This could mean your host’s database server is down."

Ответить
OSoverlord
OSoverlord - 15.12.2022 13:42

use dockerignore file for chmod rights problem with mysql folder

Ответить
Queue
Queue - 12.12.2022 14:18

With a few tweaks it worked thanks 🙂

Ответить
Pratik Bhetwal
Pratik Bhetwal - 12.12.2022 14:04

When running the docker through a WSL distro(ubuntu in my case), does the second path you specify in the volumes section in 25.15 exist virtually or should the folder exist on the local machine through manual installation(sudo apt insall nginx) of nginx outside the docker environment? I don't understand how the symlinks work. I'm guessing that the /var/www/html folder doesn't actually exist physically on your device either.

Ответить
András Bognár
András Bognár - 09.12.2022 17:12

I downloaded your code and after reviewing the video I customized it for my needs. I can start the nginx, mysql and php but I can see in the Docker Desktop that wp cannot be started, or it stops immediately with this error: "less: unrecognized option: r". Do you have an idea what can cause this? Thanks in advance!

Ответить
Antonio Lozada
Antonio Lozada - 06.12.2022 01:57

Wow, amazing tutorial!

Ответить
Rivaldo Silalahi
Rivaldo Silalahi - 28.11.2022 06:17

woww cool video! then how i can push it to docker hub??

Ответить
BERROUBA MOHAMED EL AMINE
BERROUBA MOHAMED EL AMINE - 19.11.2022 22:11

Every step was clear and clean, very well explained. thanks a lot.

Ответить
Pekka
Pekka - 16.11.2022 16:24

Nice tutorial! One thing popped into my mind: before firing up the development environment, Wordpress needs to be downloaded into local machine and extracted into /wordpress directory. This is makes sense if you're developing existing project: just drop it into /wordpress directory and continue developing it. However, it would be handy if you didn't have wordpress already in /wordpress directory, it would be downloaded automatically when the containers are started. This would allow to use this as a handy way of starting a new Wordpress project. I know it's not big of a deal to go get Wordpress and extract it, but automatic is always automatic! :D How complicated would adding this sort of functionality be?

Ответить
Daniel
Daniel - 19.10.2022 15:55

Hi Andrew, great video. this is for localhost what changes do i have to add to deploy this on app service or ACI in Azure? many thank for the reply! have a great day..

Ответить
Ankit Sharma
Ankit Sharma - 18.10.2022 02:10

Bookmarked this. Everything covered nicely. 👍

Ответить
Savash Zaynal
Savash Zaynal - 15.10.2022 00:37

Seriously this is the most clean, clear and on point example. Very underrated.

Ответить
Arifur Rahman Arif
Arifur Rahman Arif - 26.09.2022 17:27

Magnificent content.

Ответить
rushsc
rushsc - 16.09.2022 18:37

thanks for this awesome tutorial. really helped me to set up a local development environment without resorting to MAMP or something similar

Ответить
Shea Sollars
Shea Sollars - 04.09.2022 07:03

Why not just install PHP from the nginx dockerfile?

Ответить
Deven Sitapara
Deven Sitapara - 02.09.2022 14:15

Thank you very very much Andrew

Ответить
Patrice Chaula
Patrice Chaula - 25.08.2022 01:10

Thank you very much.

Ответить
L Tonchis
L Tonchis - 19.07.2022 06:51

2022 Update You can avoid all this work with 2 clicks by using Portainer App Templates 😂( it has WordPress configured) Thanks for the walkthrough though!

Ответить
CodeHorror
CodeHorror - 09.07.2022 02:19

In the wpcli.dockerfile add a RUN command "RUN apt update && apt install mysql-client". If you don't you can not use wpcli, it will complain about mysql not being found.

Ответить
CodeHorror
CodeHorror - 08.07.2022 23:51

This was a nice refresher after spending the last couple of years away from WP and Docker. Half way through the video I was thinking "wp-cli would be so much easier, let me see how I can do that". And then I noticed you discussed it at the end. Doh! It's "Sea el eye" (CLI) and it stands for "Command Line Interface".

Ответить
Jones Durumsky
Jones Durumsky - 02.07.2022 12:25

error: 'pdo-mysql' does not exist

Ответить
Devian
Devian - 25.06.2022 05:48

For anyone having the error establishing database connection. Make sure you set up your database connection in the wp-config.php file, you will initially see there a wp-config-sample.php file. This tutorial skipped it. Nevertheless, good tutorial! Thanks!

Ответить
Shams Robeen
Shams Robeen - 17.06.2022 17:06

What should be done if multiple wordpress sites needs to configure like virtualhost?

Ответить
Mantas Lukoševičius
Mantas Lukoševičius - 12.06.2022 11:59

Best wordpress-docker set-up video.

Ответить