MariaDB (Bitnami)

Launch a hardened SQL database server with Docker. Persist data, set up replication, and customize configurations for development or production environments.

This is a production-ready, secure container image for MariaDB, the popular open-source SQL database. It simplifies deployment and management by providing a pre-configured and hardened environment that is ready to run in seconds. Whether you're setting up a development environment or a production-grade replication cluster, this image offers extensive flexibility through environment variables, eliminating complex manual configuration.

Key features include:

  • Hardened Security: Built on a minimal, security-hardened base with a focus on near-zero vulnerabilities and compliance.
  • Effortless Setup: Get a database running with a single docker run command. Easily create initial users and databases on the first run.
  • Persistent Storage: Mount a volume to /bitnami/mariadb to ensure your data is saved even when the container is removed or restarted.
  • Built-in Replication: Configure a master-slave replication cluster by simply setting environment variables for replication mode, user, and master host details.
  • Highly Customizable: Pass extra flags, set character sets, or provide custom .cnf configuration files to tailor the database server to your specific needs.

Directory Structure

mariadb-bitnami
mariadb
mariadb-data
.env
docker-compose.yml

docker-compose.yml

services:
  mariadb:
    image: bitnami/mariadb:latest
    container_name: mariadb
    environment:
      - MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
      - MARIADB_USER=${MARIADB_USER}
      - MARIADB_PASSWORD=${MARIADB_PASSWORD}
      - MARIADB_DATABASE=my_database
    ports:
      - "3306:3306"
    volumes:
      - ./mariadb-data:/bitnami/mariadb
    restart: unless-stopped

.env

MARIADB_ROOT_PASSWORD=your_super_secret_root_password
MARIADB_USER=your_database_user
MARIADB_PASSWORD=your_super_secret_password
Categories:

Share:

Ad
Favicon

 

  
 

Similar to MariaDB (Bitnami)

Favicon

 

  
  
Favicon

 

  
  
Favicon