{"id":20028870,"url":"https://github.com/phase2/docker-mariadb","last_synced_at":"2026-05-06T13:13:44.961Z","repository":{"id":137097901,"uuid":"82348922","full_name":"phase2/docker-mariadb","owner":"phase2","description":"MariaDB docker container with easy configuration via environment variables.","archived":false,"fork":false,"pushed_at":"2017-07-26T14:19:37.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-12T17:36:40.191Z","etag":null,"topics":["centos","docker-image","mariadb","outrigger"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phase2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-18T00:10:33.000Z","updated_at":"2017-02-18T00:11:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a8a9535-8baf-4a78-8aae-e0c256224bbf","html_url":"https://github.com/phase2/docker-mariadb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-mariadb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-mariadb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-mariadb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-mariadb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase2","download_url":"https://codeload.github.com/phase2/docker-mariadb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241460179,"owners_count":19966519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centos","docker-image","mariadb","outrigger"],"created_at":"2024-11-13T09:16:55.865Z","updated_at":"2026-05-06T13:13:44.908Z","avatar_url":"https://github.com/phase2.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Outrigger MariaDB\n\n\u003e MariaDB docker container with easy configuration via environment variables.\n\n## Supported tags and respective `Dockerfile` links\n\n-\t[`5.5` (*5.5/Dockerfile*)](https://github.com/phase2/docker-mariadb/blob/master/5.5/Dockerfile) [![](https://images.microbadger.com/badges/version/outrigger/mariadb:5.5.svg)](https://microbadger.com/images/outrigger/mariadb:5.5 \"Get your own version badge on microbadger.com\")\n-\t[`10.0` (*10.0/Dockerfile*)](https://github.com/phase2/docker-mariadb/blob/master/10.0/Dockerfile) [![](https://images.microbadger.com/badges/version/outrigger/mariadb:10.0.svg)](https://microbadger.com/images/outrigger/mariadb:10.0 \"Get your own version badge on microbadger.com\")\n-\t[`10.1` (*10.1/Dockerfile*)](https://github.com/phase2/docker-mariadb/blob/master/10.1/Dockerfile) [![](https://images.microbadger.com/badges/version/outrigger/mariadb:10.1.svg)](https://microbadger.com/images/outrigger/mariadb:10.1 \"Get your own version badge on microbadger.com\")\n-\t[`10.2` (*10.2/Dockerfile*)](https://github.com/phase2/docker-mariadb/blob/master/10.2/Dockerfile) [![](https://images.microbadger.com/badges/version/outrigger/mariadb:10.2.svg)](https://microbadger.com/images/outrigger/mariadb:10.2 \"Get your own version badge on microbadger.com\")\n\nThis mariadb image is a MySQL compliant database image with configuration through\na collection of environment variables detailed below.\n\nFor more documentation on how Outrigger images are constructed and how to work\nwith them, please [see the documentation](http://docs.outrigger.sh/).\n\n## How to use this image\n\nStarting a MariaDB instance:\n\n```bash\ndocker run --name some-mariadb -e MYSQL_PASS=my-secret-pw -d phase2/mariadb\n```\n\n... where some-mariadb is the name you want to assign to your container and\nmy-secret-pw is the password to be set for the MySQL root user\n\n### Customizing Database Behavior\n\nThe MariaDB startup configuration is specified in the file `/etc/mysql/my.cnf`,\nand that file in turn includes any files found in the `/etc/mysql/my.cnf.d`\ndirectory that end with `.cnf`. Settings in files in this directory will augment\nand/or override settings in /etc/mysql/my.cnf.\n\nIf you want to use a customized MySQL configuration, you can create your\nalternative configuration file in a directory on the host machine and then mount\nthat directory location as `/etc/mysql/my.cnf.d` inside the mariadb container.\n\nIf `/my/custom/config-file.cnf` is the path and name of your custom\nconfiguration file, you can start your mariadb container like this note that\nonly the directory path of the custom config file is used in this command):\n\n```bash\ndocker run --name some-mariadb -v /my/custom:/etc/mysql/my.cnf.d -e MYSQL_PASS=my-secret-pw -d outrigger/mariadb\n```\n\nThis will start a new container some-mariadb where the MariaDB instance uses the\ncombined startup settings from /etc/mysql/my.cnf and\n/etc/mysql/conf.d/config-file.cnf, with settings from the latter taking\nprecedence.\n\n\u003e **If you add custom configuration in this way, you may invalidate the\nenvironment variables as source of database configuration.**\n\n## Environment Variables\n\nOutrigger images use Environment Variables and [confd](https://github.com/kelseyhightower/confd)\nto \"templatize\" a number of Docker environment configurations. These templates are\nprocessed on startup with environment variables passed in via the docker run\ncommand-line or via your docker-compose manifest file. Here are the \"tunable\"\nconfigurations offered by this image.\n\n* `MYSQL_PASS`: [`admin`] This will be the password that is set for the user\n  named **admin**.  The root user does not have a password and allow local connections only.\n* `MYSQL_DATABASE`: [e.g., `app_db`] If set, a database with this name will be\ncreated when the database first starts up. *This is not set by default.*\n* `MYSQL_EXPIRE_LOGS_DAYS`: [`10`]\n* `MYSQL_MAX_ALLOWED_PACKET`: [`16M`]\n* `MYSQL_MAX_CONNECTIONS`: [`10`]\n* `MYSQL_QUERY_CACHE_LIMIT`: [`1M`]\n* `MYSQL_QUERY_CACHE_SIZE`: [`16M`]\n* `MYSQL_SLOW_QUERY_LOG`: [`0`] By default the slow query log is disabled.\n* `MYSQL_LONG_QUERY_TIME`: [`10`] Long query threshold time in seconds.\n* `MYSQL_LOG_QUERY_NO_INDEX`: [`0`] By default do not log queries that do not use an index.\n\n## Security Reports\n\nPlease email outrigger@phase2technology with security concerns.\n\n## Maintainers\n\n[![Phase2 Logo](https://s3.amazonaws.com/phase2.public/logos/phase2-logo.png)](https://www.phase2technology.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fdocker-mariadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase2%2Fdocker-mariadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fdocker-mariadb/lists"}