# 版本
version: "3.7"
# 服务
services:
mongo:
container_name: mongo
image: mongo:2.6
restart: always
hostname: mongo
# ports:
# - 27017
volumes:
- ../dev-ops-repo/yapi/mongo:/data/db
environment:
- TZ=${TIME_ZONE:-Asia/Shanghai}
yapi:
container_name: yapi
image: v7lin/yapi
restart: always
hostname: yapi
ports:
- 8080:3000
volumes:
- ../dev-ops-repo/yapi/init:/yapi/init
# - ../dev-ops-repo/yapi/log:/yapi/log
environment:
- TZ=${TIME_ZONE:-Asia/Shanghai}
- YAPI_PORT=3000
- YAPI_CLOSEREGISTER=true # 关闭注册
- YAPI_ADMINACCOUNT=yapi@yapi.com # 管理员帐号
- YAPI_ADMINPASSWORD=yapi # 管理员初始化密码
- YAPI_DB_SERVERNAME=mongo # mongo 数据库地址
- YAPI_DB_PORT=27017 # mongo 数据库端口
- YAPI_DB_DATABASE=yapi # mongo 数据库名
depends_on:
- mongo
-
Notifications
You must be signed in to change notification settings - Fork 3
yapi
License
droplet-js/yapi
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|