Skip to main content

MariaDb docker-compose


version: '3'

services:
  mariadb:
    image: mariadb:10.5
    ports:
      - 3308:3306
    restart: always
    environment:
      MYSQL_DATABASE: xxxxxxx
      MYSQL_USER: xxxxxxx
      MYSQL_PASSWORD: xxxxxxxx
      MYSQL_ROOT_PASSWORD: xxxxxxxxx
    volumes:
      - /mnt/koa-02/mariadb/db:/var/lib/mysql
    deploy:
      mode: global
      placement:
        constraints: [node.hostname == EVA-02]

Les dernières images sont disponibles sur le site officiel Docker Hub, accessibles via ce lien : MariaDb