Skip to main content

Mariadb

MariaDB is one of the most popular open source relational databases.
It's made by the original developers of MySQL and guaranteed to stay open source.
Below you can find a basic example to deploy a mariadb server using their official docker image:


Copy past the previous content and save it under a file called mariadb.yml.
Then execute the following command to startup a mariadb server:

nanocl state apply -s mariadb.yml -- --password my_root_password --volume /opt/mariadb
tip

Other cargo created in the same namespace global will be able to connect to the mariadb using is key mariadb.global.c The key can be predicted and caculated, it's formated this way: cargo_name.namespace_name.c|v c for container and v for virtual machine. This allow us to have the same name for virtual machine and containers.