You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug, and I know this is not quite the place to ask for it, but I'd like to know your thoughts about something:
I have your build up and running, thanks to your help the other day.
I got this idea to create a separate directory for each of the WP websites and database, because it makes sense to have a separate container for each website. And I'd like to share the same db service between them.
But I'm not sure about how do I'd handle this, or how can I reference a db service that is declared in the db dir into "blog1" and "blog2"directories, for example. Can that be done? If so, how? And does this makes sense, that is, to share the same db service between websites, if the target is to be more efficient on the server resources (my VPS is limited to 2gb ram)?
You should remove the depend_on instruction in your compose file... and only set the environment WORDPRESS_DB_HOST to your container name (${CONTAINER_DB_NAME}).
This is not a bug, and I know this is not quite the place to ask for it, but I'd like to know your thoughts about something:
I have your build up and running, thanks to your help the other day.
I got this idea to create a separate directory for each of the WP websites and database, because it makes sense to have a separate container for each website. And I'd like to share the same db service between them.
But I'm not sure about how do I'd handle this, or how can I reference a db service that is declared in the db dir into "blog1" and "blog2"directories, for example. Can that be done? If so, how? And does this makes sense, that is, to share the same db service between websites, if the target is to be more efficient on the server resources (my VPS is limited to 2gb ram)?
Any help would be awesome!
This is what I have ATM:
docker-compose.yml
And this is where I want to be:
db container
blog1 container (blog2, blog3 and so on)
The text was updated successfully, but these errors were encountered: