Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pigloverabbit520/yapi-image
yapi镜像
https://github.com/pigloverabbit520/yapi-image
dockerfile nodejs yapi
Last synced: 8 days ago
JSON representation
yapi镜像
- Host: GitHub
- URL: https://github.com/pigloverabbit520/yapi-image
- Owner: pigLoveRabbit520
- Created: 2019-04-28T04:41:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-28T07:28:34.000Z (almost 6 years ago)
- Last Synced: 2024-11-18T16:43:09.283Z (2 months ago)
- Topics: dockerfile, nodejs, yapi
- Language: Dockerfile
- Size: 5.07 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 使用
添加`config.json`文件
```
{
"port": "3000",
"adminAccount": "[email protected]",
"db": {
"servername": "mongo_server_addr",
"DATABASE": "yapi",
"port": "27071",
"user": "your_db_user",
"pass": "your_db_user_password"
},
"mail": {
"enable": false,
"host": "smtp.163.com",
"port": 465,
"from": "***@163.com",
"auth": {
"user": "***@163.com",
"pass": "*****"
}
}
}
```
挂载`config.json`文件到容器`/root/yapi/config.json`# docker-compose.yml示例
```
version: '2'
services:
web:
image: salamandermh/yapi:1.7.0
volumes:
- ./config.json:/root/yapi/config.json
ports:
- 9002:3000
```