milouse
@milouse@discuss.tchncs.de
FOSS ruby, elisp and python dev, ex scout leader, interested in openweb, semanticweb, privacy and socialeconomy. 0xA714ECAC8C9CEE3D
- Comment on Is it possible to have just one DB across all services 1 year ago:
Yes and no. Theoretically, yes you may use one database for all services. Historically it was even an old assumption and some services still ask you for a table prefix to allow various services to use the same db without clashes. However it’s no more recommended and you should absolutely avoid going this way.
But nothing blocks you to have several separate databases on the same server. Here your mysql docker container play the role of a database server. You can use the same container for different services using different databases. Create one specific user/database per service inside your container (you may wrap the official mysql image inside your own image to script its creation), then add it in your docker-compose file and make all your services depend on the same service.