GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - williamlsh/yapi-docker: Dockerized yapi deployment.

This repository was archived by the owner on Nov 11, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
config.json
config.json
 
 
docker-compose.yml
docker-compose.yml
 
 
nginx.conf
nginx.conf
 
 

Repository files navigation

yapi docker

Dockerized yapi deployment.

How does dockerized yapi work?

The 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.

Henceforth 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.

How to run

Modify config.json that suits your needs, the deployment depends on it. To start the deployment, run:

make up

Then open localhost:3000 at your browser, input default credentials to login, it's recommended that you change the default password.

The nginx.conf can be a good reference if you deploy yapi behind a reverse proxy.

Data migration

All 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.

See Backup, restore, or migrate data volumes to know more about Docker volume migration.

About

Dockerized yapi deployment.

Topics

dockeryapi

Resources

Readme
GPL-3.0 license
Activity

Stars

7 stars

Watchers

1 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.