Is it reasonable to run the database on docker at all? I thought it would have a performance penalty either way.
Discussion
Docker is just a convenience that wraps Linux native virtualization (domain separation) in it. The performance is native when on Linux. I use docker for convenience of maintaining a compatible environment for the software I need. 🐶🐾🫡
Ah, thanks. That's good to know 🙂
I recommend looking into nspawn - it's a systemd enabled service that runs LXC containers
here is an example of a deployment script i built most of:
https://github.com/relaytools/relay-tools-images
it's a bit more manual than docker but you aren't forced into the use of aufs or whatever overlay filesystem so it's got a bit less overhead at that level
performance is pretty much near the same as running the server not in a container, it mostly only controls access to kernel resources via namespaces