Skip to main content

MariaDB

version: '3'

services:

  db:
    image: mariadb:latest
    container_name: MariaDB
    volumes:
      - db_data:/var/lib/mysql
    restart: unless-stopped
    environment:
      MARIADB_ROOT_PASSWORD: tbeFo80uV!rGN9lsA

volumes:
    db_data:

Avec Traefik

version: '3'

services:

  db:
    image: mariadb:11
    container_name: MariaDB
    volumes:
      - db_data:/var/lib/mysql
    restart: unless-stopped
    networks:
      - traefik
    environment:
      MARIADB_ROOT_PASSWORD: tbeFo80uV!rGN9lsA

volumes:
    db_data:

networks:
  traefik:
    external: true