Comment on Adding services to an existing Docker nginx container
bjorney@lemmy.ca 1 year agoit won’t necessarily take twice the resources of a single mysql container
It will as far as runtime resources
You can (and should) just use the one MySQL container for all your applications. Set up a different database/schema for each container
mudeth@lemmy.ca 1 year ago
I’m getting conflicting replies, so I’ll try running separate containers (which was the point of going the docker way anyway - to avoid version dependency problems).
If it doesn’t scale well I may just switch back to non-container hosting.
bjorney@lemmy.ca 1 year ago
To elaborate a bit more, there is the MySQL resource usage and the docker overhead. If you run two containers that are the same, the docker overhead will only ding you once, but the actual MySQL process will consume its own CPU and memory inside each container.
So by running two containers you are going to be using an extra couple hundred MB of RAM (whatever MySQL’s minimum memory footprint is)