services: mariadb-latest: container_name: mariadb-latest image: mariadb:latest restart: "no" environment: # No real data lives here - this is a thin self-hosted-registry mirror # build target, not a running database. Random root password since # the base image needs some root-auth setting to initialize at all. - MYSQL_RANDOM_ROOT_PASSWORD=true healthcheck: test: ["CMD-SHELL", "mariadb-admin ping -h 127.0.0.1 -u root || exit 1"] interval: 5s timeout: 5s retries: 10 start_period: 15s