{"id":17023623,"url":"https://github.com/krisrang/dokku-mariadb","last_synced_at":"2025-04-12T10:31:33.206Z","repository":{"id":31019206,"uuid":"34577699","full_name":"krisrang/dokku-mariadb","owner":"krisrang","description":"Plugin for dokku that provides a MariaDB server in a single container","archived":false,"fork":false,"pushed_at":"2015-08-27T08:48:21.000Z","size":160,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T22:13:55.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krisrang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-25T17:10:20.000Z","updated_at":"2025-02-06T00:34:59.000Z","dependencies_parsed_at":"2022-09-08T17:22:42.223Z","dependency_job_id":null,"html_url":"https://github.com/krisrang/dokku-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/krisrang%2Fdokku-mariadb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisrang%2Fdokku-mariadb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisrang%2Fdokku-mariadb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisrang%2Fdokku-mariadb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krisrang","download_url":"https://codeload.github.com/krisrang/dokku-mariadb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239985494,"owners_count":19729511,"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":[],"created_at":"2024-10-14T07:13:46.408Z","updated_at":"2025-02-21T08:35:16.397Z","avatar_url":"https://github.com/krisrang.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"dokku-mariadb [![Build Status](https://travis-ci.org/krisrang/dokku-mariadb.svg?branch=master)](https://travis-ci.org/krisrang/dokku-mariadb)\n================\n\ndokku-mariadb is a plugin for [dokku][dokku] that provides MariadDB servers for your applications.\n\nIt uses the official MariadDB docker image (version 10).\n\nThis version is tested against dokku 0.3.18.\n\n## Installation\n\n```\ngit clone https://github.com/krisrang/dokku-mariadb /var/lib/dokku/plugins/mariadbkr\ndokku plugins-install\n```\n\n\n## Commands\n```\n$ dokku help\n    mariadb:admin_console                           Launch a mariadb admin cli\n    mariadb:console     \u003capp\u003e                       Launch a mariadb cli for \u003capp\u003e\n    mariadb:create      \u003capp\u003e                       Create a mariadb database for \u003capp\u003e\n    mariadb:delete      \u003capp\u003e                       Delete mariadb database for \u003capp\u003e\n    mariadb:url         \u003capp\u003e                       Get DATABASE_URL for \u003capp\u003e\n    mariadb:dump        \u003capp\u003e \u003e \u003cfilename.dump\u003e     Dump \u003capp\u003e database to dump file\n    mariadb:restore     \u003capp\u003e \u003c \u003cfilename.*\u003e        Restore database to \u003capp\u003e from file\n    mariadb:list                                    List all databases\n    mariadb:restart                                 Restart the mariadb docker container\n    mariadb:start                                   Start the mariadb docker container if it isn't running\n    mariadb:status                                  Shows status of mariadb\n    mariadb:stop                                    Stop the mariadb docker container\n```\n\n## Info\nThis plugin adds the following environment variables to your app via config vars (they are available via `dokku config \u003capp\u003e`):\n\n* DATABASE\\_URL\n* MYSQL\\_URL\n* DB\\_HOST\n* DB\\_NAME\n* DB\\_DB\n* DB\\_USER\n* DB\\_PASS\n* DB\\_PORT\n\n## Usage\n\n### Start MariadDB:\n```\n$ dokku mariadb:start               # Server side\n$ ssh dokku@server mariadb:start    # Client side\n```\n\n### Stop MariadDB:\n```\n$ dokku mariadb:stop                # Server side\n$ ssh dokku@server mariadb:stop     # Client side\n```\n\n### Restart MariadDB:\n```\n$ dokku mariadb:restart             # Server side\n$ ssh dokku@server mariadb:restart  # Client side\n```\n\n### Create a new database for an existing app:\n```\n$ dokku mariadb:create \u003capp\u003e              # Server side\n$ ssh dokku@server mariadb:create \u003capp\u003e   # Client side\n```\n\n### Dump database:\n```\n$ dokku mariadb:dump \u003capp\u003e \u003e filename.dump # Server side\n```\n\n### Restore database from dump:\n```\n$ dokku mariadb:restore \u003capp\u003e \u003c filename.dump # Server side\n```\n\n### Copy database foo to database bar using pipe:\n```\n$ dokku mariadb:dump \u003capp\u003e | dokku mariadb:restore \u003capp\u003e # Server side\n```\n\n## Acknowledgements\n\nThis plugin is based originally on the [dokku-psql-single-container](https://github.com/Flink/dokku-psql-single-container).\n\n## License\n\nThis plugin is released under the MIT license. See the file [LICENSE](LICENSE).\n\n[dokku]: https://github.com/progrium/dokku\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisrang%2Fdokku-mariadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisrang%2Fdokku-mariadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisrang%2Fdokku-mariadb/lists"}