I’m trying to clean up some of the redundant databases in use by my containers. I’ve always used docker compose files with a standalone database because I’m not really sure how to use the mariadb server within NethServer. I’m looking for best practices / answers to common questions like:
How should I create databases and accounts?
How do I ensure these extra databases are backed up?
Are there any risks to me adding my own databases into the central DB server?
If I missed an article that explains this, I apologize - please link me!
You can do it with phpmyadmin or on command line using mysql or mysqladmin.
The DBs are included in Nethserver backup.
I don’t know if it’s really worth the effort.
You need to reconfigure your Docker installations to use the localhost database.
Additionally you need to redirect the ports or allow it in the firewall, see Docker — NethServer 7 Final
Thank you very much for the clear answers and explanations!
I agree that it’s not worth the effort to change docker setups that have internal databases to use the host system’s database - but I have a few containers I’m planning to add that do not come with a database.