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:
docker run command. Easily create initial users and databases on the first run./bitnami/mariadb to ensure your data is saved even when the container is removed or restarted..cnf configuration files to tailor the database server to your specific needs.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-stoppedMARIADB_ROOT_PASSWORD=your_super_secret_root_password
MARIADB_USER=your_database_user
MARIADB_PASSWORD=your_super_secret_passwordAuto-fetched 14 minutes ago