{"id":23591538,"url":"https://github.com/williamlsh/yapi-docker","last_synced_at":"2025-06-25T22:05:10.990Z","repository":{"id":114790349,"uuid":"384703519","full_name":"williamlsh/yapi-docker","owner":"williamlsh","description":"Dockerized yapi deployment.","archived":false,"fork":false,"pushed_at":"2023-04-12T23:55:33.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T17:13:49.611Z","etag":null,"topics":["docker","yapi"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williamlsh.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,"zenodo":null}},"created_at":"2021-07-10T13:23:55.000Z","updated_at":"2023-11-24T15:46:30.000Z","dependencies_parsed_at":"2023-06-07T07:15:45.890Z","dependency_job_id":null,"html_url":"https://github.com/williamlsh/yapi-docker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/williamlsh/yapi-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamlsh%2Fyapi-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamlsh%2Fyapi-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamlsh%2Fyapi-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamlsh%2Fyapi-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamlsh","download_url":"https://codeload.github.com/williamlsh/yapi-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamlsh%2Fyapi-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261960505,"owners_count":23236572,"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-12-27T07:39:29.929Z","updated_at":"2025-06-25T22:05:10.976Z","avatar_url":"https://github.com/williamlsh.png","language":"Dockerfile","readme":"# yapi docker\n\nDockerized [yapi](https://github.com/YMFE/yapi) deployment.\n\n## How does dockerized yapi work?\n\nThe docker image pre-defines a command to run yapi, but it's not enough since user account initialization involves Mongodb which must be finished before formally starting yapi server.\n\nHenceforth an intermediate container should be started as a docker compose service and also as a job to serve such necessary initialization. The initialization job can be run multiple times but only succeeds in the first time due to duplicated data in Mongodb, it doesn't matter whether it succeeds or fails, but will eventually exit which is normal.\n\n## How to run\n\nModify `config.json` that suits your needs, the deployment depends on it. To start the deployment, run:\n\n```bash\nmake up\n```\n\nThen open `localhost:3000` at your browser, input default credentials to login, it's recommended that you change the default password.\n\nThe `nginx.conf` can be a good reference if you deploy yapi behind a reverse proxy.\n\n## Data migration\n\nAll api data persists in Mongodb, and all MongoDB data is managed by Docker named volume as defined in `docker-compose.yml`. As long as you don't delete that volume, the data survives on every repeated deployment.\n\nSee [Backup, restore, or migrate data volumes](https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes) to know more about Docker volume migration.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamlsh%2Fyapi-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamlsh%2Fyapi-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamlsh%2Fyapi-docker/lists"}