{"id":20770859,"url":"https://github.com/codemonauts/docker-mysql","last_synced_at":"2025-03-11T19:49:56.519Z","repository":{"id":82653763,"uuid":"294126730","full_name":"codemonauts/docker-mysql","owner":"codemonauts","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-05T16:14:29.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-18T07:12:03.572Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codemonauts.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":"2020-09-09T13:49:04.000Z","updated_at":"2023-12-11T02:31:50.000Z","dependencies_parsed_at":"2023-03-14T23:00:54.409Z","dependency_job_id":null,"html_url":"https://github.com/codemonauts/docker-mysql","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/codemonauts%2Fdocker-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fdocker-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fdocker-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fdocker-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemonauts","download_url":"https://codeload.github.com/codemonauts/docker-mysql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243104204,"owners_count":20236943,"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-11-17T12:12:33.448Z","updated_at":"2025-03-11T19:49:56.495Z","avatar_url":"https://github.com/codemonauts.png","language":"Shell","readme":"# codemonauts/mysql\n\nSimple MySQL 5.7 container with a few handy tools for local development:\n  * Import/Export script\n  * [mycli](mycli.net), as an alternative MySQL-client with nicer colors and better tab completion\n  * [sqlstrip](https://github.com/codemonauts/sqlstrip) to reduce loading time of databas dumps\n\n## Usage with docker-compose\n\n```\nservices:\n  db:\n    image: codemonauts/mysql\n    restart: always\n    environment:\n      MYSQL_ROOT_PASSWORD: topsecret\n      MYSQL_DATABASE: foo\n      MYSQL_USER: bar\n      MYSQL_PASSWORD: baz\n    volumes:\n      - .:/data:delegated\n      - db-data:/var/lib/mysql:delegated\n\nvolumes:\n  db-data:\n```\n\n## Import\nPlace the dump into the same folder where your docker-compose.yml file is located, so the file is visible inside the\ncontainer.\n```\ndocker-compose exec db import databasedump.sql.gz\n```\nThe dump can either be plain sql, or an compressed sql file (supported extensions are sql.gz, sql.zst and zip)\n\n## Export\nThis will dump the database defined by '$MYSQL_DATABASE' into a gzipped file.\n```\ndocker-compose exec db dump\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonauts%2Fdocker-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemonauts%2Fdocker-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonauts%2Fdocker-mysql/lists"}