ID: I202512171654
Status: idea
Tags: MariaDB, docker-compose.yml, database

mariadb dockercompose

This is how I host my MariaDB container. Ofc with a different password.

services:
  db:
    image: mariadb
    restart: always
    ports:
     - 3306:3306
    environment:
      MARIADB_ROOT_PASSWORD: somepassword

To read more about MariaDB, you should go to the dockerhub page


References