{"id":13434616,"url":"https://github.com/wangxian/alpine-mysql","last_synced_at":"2025-06-18T03:07:49.306Z","repository":{"id":45176283,"uuid":"45742214","full_name":"wangxian/alpine-mysql","owner":"wangxian","description":"a docker image base on alpine with MySQL/MariaDB","archived":false,"fork":false,"pushed_at":"2024-05-02T17:07:22.000Z","size":23,"stargazers_count":124,"open_issues_count":0,"forks_count":89,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-17T19:38:46.276Z","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/wangxian.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-07T15:36:21.000Z","updated_at":"2024-07-24T07:41:12.000Z","dependencies_parsed_at":"2024-10-27T16:24:04.206Z","dependency_job_id":null,"html_url":"https://github.com/wangxian/alpine-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangxian/alpine-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxian%2Falpine-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxian%2Falpine-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxian%2Falpine-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxian%2Falpine-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangxian","download_url":"https://codeload.github.com/wangxian/alpine-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxian%2Falpine-mysql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260477918,"owners_count":23015064,"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-07-31T03:00:18.979Z","updated_at":"2025-06-18T03:07:44.293Z","avatar_url":"https://github.com/wangxian.png","language":"Shell","readme":"# alpine-mysql\na very small docker image base on alpine with MySQL/MariaDB\n\n## build local image (docker)\n\n```\ndocker build -t wangxian/alpine-mysql:latest .\n```\n\n## build image (docker-compose)\n\n```\ncp .env-dist .env\nvim build .env # change environment if you need\ndocker compose build\n```\n\n## Usage (docker)\n\n```\n# only root user\ndocker run -it --name mysql -p 3306:3306 -v ~/appdata/mysql:/app/mysql -e MYSQL_DATABASE=admin -e MYSQL_ROOT_PASSWORD=s6321..8 wangxian/alpine-mysql\n\n# use normal user of app\ndocker run -it --name mysql -p 3306:3306 -v ~/appdata/mysql:/app/mysql -e MYSQL_DATABASE=admin -e MYSQL_USER=app -e MYSQL_PASSWORD=app123..8 -e MYSQL_ROOT_PASSWORD=s6321..8 wangxian/alpine-mysql\n```\n\n## Usage (docker-compose)\n\n```\ndocker-compose up -d\n```\n\n\nIt will:\n- set no password for 'root' with localhost connections;\n- set password for 'root' with non-localhost connection\n- create a new db\n- create an normal user and set his password for non-localhost connections\n","funding_links":[],"categories":["WeChat"],"sub_categories":["Mini Program"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangxian%2Falpine-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangxian%2Falpine-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangxian%2Falpine-mysql/lists"}