Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Recommended production docker setup #933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jcpprojects opened this issue Nov 27, 2024 · 0 comments
Closed

Recommended production docker setup #933

jcpprojects opened this issue Nov 27, 2024 · 0 comments

Comments

@jcpprojects
Copy link

What is the recommended docker setup for production if you want to have several Docker instances?

From here:
https://developer.wordpress.org/advanced-administration/security/backup/files
and here:
#924

Seems we need to persist /var/www/html

But then do we need a shared volume with all the code to be able to run more than one machine? Isn't this going to impact performance as some other posts suggest due to slower file access?

Some other social media posts suggest to only persist wp-content/uploads directory, and core installation and plugins would come from Docker. I think should work, but then I am not sure about other local files which might be lost during updates which could be used by plugins, or .htaccess mentioned on the first link.

On the link below this solution is also suggested and used with mixed opinions (external db, persist wp-content/updates and replace the rest on every update), but I cannot see an official documentation supporting this.

https://www.reddit.com/r/docker/comments/h95lxv/does_anyone_run_wordpress_in_production_via/

@docker-library docker-library locked and limited conversation to collaborators Nov 27, 2024
@tianon tianon converted this issue into discussion #934 Nov 27, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant