I just run one mariadb container via docker-compose that all my other services use as their database.
version: "2"
services:
mariadb:
image: lscr.io/linuxserver/mariadb:latest
container_name: mariadb
environment:
- TZ=####/####
- PUID=###
- PGID=###
- MYSQL_ROOT_PASSWORD==############
volumes:
- /docker/mariadb:/config
ports:
- 3306:3306
restart: unless-stopped
Off-topic but I don't really get the appeal in running Kubernetes (or similar technologies) in a homelab. Unless it's something you want to learn for work of course.