feat: update readme (#21)

This commit is contained in:
vran 2022-02-21 20:27:41 +08:00 committed by GitHub
parent d76f1709a5
commit dde3c09e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -48,11 +48,25 @@ databasir.datasource.url=127.0.0.1:3306
### Docker 部署 ### Docker 部署
TODO 目前镜像没有上传到 DockerHub需要用户自己在本地手动构建
1. 克隆仓库
```shell
git clone https://github.com/vran-dev/databasir.git
```
2. 构建镜像
```shell
docker build -t databasir:v1 .
```
3. 启动项目
```shell
docker run -e JAVA_OPTS="-Ddatabasir.datasource.url=127.0.0.1:3306 -Ddatabasir.datasource.username=root -Ddatabasir.datasource.password=123456" -p 8080:8080 -d databasir:v1
```
## Docker Compose 本地部署 ## Docker Compose 本地部署