I want to install wordpress on casaos and connect it with mariadb also installed on casaos

I want to install wordpress on casaos in the same network to see mariadb and establish a new database on mariadb with phpmyadmin, I think I should installed all of these ( mariad, phpmyadmin and wordpress ) on the same network, Is that possible ?