help debug docker recipe of deploying Wordpress website

pedro.de.marco

New Member
Joined
May 12, 2022
Messages
1
Reaction score
0
Credits
18

I'm kind of new with "docker"
When I run the machine (containers ...) I ran to some problems.
One of them was the problem that I was not able to upload images to the "local website" and here I tried to fix it by fixing the file permissions.
The first time I ran the command in the running wordpress container, then added the following line to the docker-compose.yml
command: chown -R www-data:www-data /var/www/html/wp-content/uploads
After reloading the system, I get the following error in the terminal:
wp-localcopy1_wordpress_1 exited with code 0
and there's no website on port 8080.
When I commented the line, it began to work.
However I have another problem.
I'm unable to download themes. Even if the file permission are fixed.
When I try to, I get the error that demands FTP password, which the wordpress has not provided me with one.
Helps appreciated.
 

Attachments

  • Screenshot_2022-05-12_20-54-29.png
    Screenshot_2022-05-12_20-54-29.png
    37.7 KB · Views: 13


gvisoc

Well-Known Member
Joined
May 29, 2020
Messages
339
Reaction score
397
Credits
3,525
Hi.

Sorry for the late reply. Can you post the whole docker-compose.yml file? That way I can reproduce to begin with.
 

gvisoc

Well-Known Member
Joined
May 29, 2020
Messages
339
Reaction score
397
Credits
3,525
For now, following the post is allowing me to upload images with no problem, and also was able to install JetPack from the "Add new Plugin" screen.

Screenshot from 2022-05-13 18-00-49.png
Screenshot from 2022-05-13 18-04-47.png


Without knowing a bit more the actual plugin you're trying to install, and what modifications may have you done to your docker-compose.yml file, I can't reproduce your issues.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top