{"id":21441262,"url":"https://github.com/cuigh/yapi","last_synced_at":"2026-01-04T03:10:23.415Z","repository":{"id":82829882,"uuid":"136907107","full_name":"cuigh/yapi","owner":"cuigh","description":"Docker image for YApi","archived":false,"fork":false,"pushed_at":"2018-10-16T10:42:49.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-23T10:25:51.200Z","etag":null,"topics":["docker","yapi"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/cuigh.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":"2018-06-11T09:52:36.000Z","updated_at":"2022-01-19T03:09:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d73960a-0f40-48c2-9917-a46768f70673","html_url":"https://github.com/cuigh/yapi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuigh%2Fyapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuigh%2Fyapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuigh%2Fyapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuigh%2Fyapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuigh","download_url":"https://codeload.github.com/cuigh/yapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955750,"owners_count":20374372,"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","yapi"],"created_at":"2024-11-23T01:22:59.255Z","updated_at":"2026-01-04T03:10:23.379Z","avatar_url":"https://github.com/cuigh.png","language":"Dockerfile","readme":"# Docker image for [YApi](https://github.com/YMFE/yapi)\n\n## Config\n\nConfig file must be mounted at `/app/config.json` in container. Here is an example config file.\n\n```json\n{\n  \"port\": \"3000\",\n  \"adminAccount\": \"admin@admin.com\",\n  \"db\": {\n    \"servername\": \"127.0.0.1\",\n    \"DATABASE\": \"yapi\",\n    \"port\": 27017,\n    \"user\": \"test1\",\n    \"pass\": \"test1\",\n    \"authSource\": \"\"\n  },\n  \"mail\": {\n    \"enable\": true,\n    \"host\": \"smtp.163.com\",\n    \"port\": 465,\n    \"from\": \"***@163.com\",\n    \"auth\": {\n      \"user\": \"***@163.com\",\n      \"pass\": \"*****\"\n    }\n  }\n}\n```\n\n## Initialize\n\nYou must initialize the **YApi** before you run it for the first time.\n\n```bash\ndocker run -ti --rm -v $PWD/yapi.json:/app/config.json cuigh/yapi:v1.3.17 /app/yapi/server/install.js\n```\n\n## Run\n\n```bash\ndocker run -ti --rm -v $PWD/yapi.json:/app/config.json -p 3000:3000 cuigh/yapi:v1.3.17\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuigh%2Fyapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuigh%2Fyapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuigh%2Fyapi/lists"}