MariaDB

docker-compose.yml

version: '3'
services:

  mariadb:
    container_name: mariadb
    image: mariadb:latest
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - /mnt/database:/var/lib/mysql
    ports:
      - 3306:3306
    networks:
      - database

networks:
  database:
    driver: bridge

.env

MYSQL_ROOT_PASSWORD=
Emil Moe

Software- and Data Engineer

I created this website to help you empower your infrastructure and so you don't need to spend the same amount of hours as me on researching. I chose to make the site ad-free, so if you like what I do, please consider supporting my Patreon.

Leave a Reply

Your email address will not be published. Required fields are marked *