{"id":15173901,"url":"https://github.com/instazdll/simple-mariadb-docker","last_synced_at":"2025-04-04T12:41:58.622Z","repository":{"id":233589271,"uuid":"781956212","full_name":"InstaZDLL/simple-mariadb-docker","owner":"InstaZDLL","description":"A Mariadb handmade docker container.","archived":false,"fork":false,"pushed_at":"2024-04-25T12:30:19.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T00:06:41.243Z","etag":null,"topics":["docker","docker-container","dockerfile","mariadb","mariadb-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"afl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InstaZDLL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2024-04-04T11:11:07.000Z","updated_at":"2024-04-25T12:30:23.000Z","dependencies_parsed_at":"2024-09-23T04:01:05.653Z","dependency_job_id":null,"html_url":"https://github.com/InstaZDLL/simple-mariadb-docker","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":0.25,"last_synced_commit":"94f066375b2eacd3961c5d533f193b28afc619fb"},"previous_names":["instazdll/simple-mariadb-docker"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstaZDLL%2Fsimple-mariadb-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstaZDLL%2Fsimple-mariadb-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstaZDLL%2Fsimple-mariadb-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstaZDLL%2Fsimple-mariadb-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InstaZDLL","download_url":"https://codeload.github.com/InstaZDLL/simple-mariadb-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182337,"owners_count":20897379,"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":["docker","docker-container","dockerfile","mariadb","mariadb-server"],"created_at":"2024-09-27T11:04:24.946Z","updated_at":"2025-04-04T12:41:58.601Z","avatar_url":"https://github.com/InstaZDLL.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Mariadb Docker\n\nThis repository contains a Dockerfile for building a MariaDB image based on Debian. The image is configured to run MariaDB as a non-root user for security reasons.\n\n**Info :** The mariadb in the container is a pre-build image so the user, password and the database, are created by default for a wordpress.\n\n[ ![GitHub Release](https://img.shields.io/github/v/release/InstaZDLL/simple-mariadb-docker?style=for-the-badge)](https://img.shields.io/github/v/release/InstaZDLL/simple-mariadb-docker?sort=date\u0026display_name=release\u0026style=for-the-badge\n)  ![GitHub License](https://img.shields.io/github/license/InstaZDLL/simple-mariadb-docker?style=for-the-badge) ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/InstaZDLL/simple-mariadb-docker?style=for-the-badge) ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/InstaZDLL/simple-mariadb-docker/total?style=for-the-badge\u0026color=%230080ff)\n\n## How It Works\n\nThe Dockerfile installs MariaDB and other necessary packages on a Debian base image. It also sets up necessary directories and permissions for running MariaDB.\n\nThe `docker-entrypoint.sh` script is used to initialize the database and create a user when the container is started. The script checks if it's being run as root, and if so, uses `gosu` to step down from root to the `mysql` user.\n\nEnvironment variables are used to configure the database. You can set the root password, database name, username, and password using the `MYSQL_ROOT_PASSWORD`, `MYSQL_DATABASE`, `MYSQL_USER`, and `MYSQL_PASSWORD` environment variables, respectively.\n\n## Environment Variables\nThe following environment variables can be set when running the Docker container:\n\n| ENV | Default value | Example | Description |\n| --- | ------------- | ------- | ----------- |\n| MYSQL\\_ROOT\\_PASSWORD | [credentials.md](https://github.com/InstaZDLL/simple-mariadb-docker/blob/main/.github/mysqld-credentials.md)  | myrootpassword | By default, the root password is randomly generated. You can specify a specific root password if required. |\n| MYSQL\\_DATABASE | wordpress | mydatabase | The name of the first database. |\n| MYSQL\\_USER | wpuser | myuser | The username first user. |\n| MYSQL\\_PASSWORD | wpuser | mypassword | The password for the first user. |\n\n## How to Run the Container\n\nYou can run a container from this image using the following command:\n\n```bash\ndocker run -d --name some-mariadb -p 3306:3306 nayeonyny/mariadb:latest\n```\n\n## Author\n\n- [@InstaZDLL](https://github.com/InstaZDLL)\n\n## License\n\n```text\nCopyright (C) 2024 Ethan Besson\n\nLicensed under the Academic Free License version 3.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://opensource.org/license/afl-3-0-php/\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)\n\n   [dill]: \u003chttps://github.com/joemccann/dillinger\u003e\n   [git-repo-url]: \u003chttps://github.com/joemccann/dillinger.git\u003e\n   [john gruber]: \u003chttp://daringfireball.net\u003e\n   [df1]: \u003chttp://daringfireball.net/projects/markdown/\u003e\n   [markdown-it]: \u003chttps://github.com/markdown-it/markdown-it\u003e\n   [Ace Editor]: \u003chttp://ace.ajax.org\u003e\n   [node.js]: \u003chttp://nodejs.org\u003e\n   [Twitter Bootstrap]: \u003chttp://twitter.github.com/bootstrap/\u003e\n   [jQuery]: \u003chttp://jquery.com\u003e\n   [@tjholowaychuk]: \u003chttp://twitter.com/tjholowaychuk\u003e\n   [express]: \u003chttp://expressjs.com\u003e\n   [AngularJS]: \u003chttp://angularjs.org\u003e\n   [Gulp]: \u003chttp://gulpjs.com\u003e\n\n   [PlDb]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/dropbox/README.md\u003e\n   [PlGh]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/github/README.md\u003e\n   [PlGd]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/googledrive/README.md\u003e\n   [PlOd]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/onedrive/README.md\u003e\n   [PlMe]: \u003chttps://github.com/joemccann/dillinger/tree/master/plugins/medium/README.md\u003e\n   [PlGa]: \u003chttps://github.com/RahulHP/dillinger/blob/master/plugins/googleanalytics/README.md\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstazdll%2Fsimple-mariadb-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstazdll%2Fsimple-mariadb-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstazdll%2Fsimple-mariadb-docker/lists"}