diff --git a/README.md b/README.md index f87d3d9..44256f0 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ make tool.verify && make ca && make ./_output/platforms/linux/amd64/dBlog -c configs/dazBlog.yaml ``` -#### Dockerfile +#### Dockerfile(推荐) ```shell docker build -t dazblog-image:latest . @@ -42,6 +42,20 @@ docker run --network=host \ dazblog-image:latest ``` +#### Docker +```shell +docker pull realdaz/dazblog + +docker run --network=host \ +-e DB_HOST=your_db_host \ +-e DB_PORT=your_db_port \ +-e DB_USER=your_db_user \ +-e DB_PASSWORD=your_db_password \ +-e DB_NAME=your_db_name \ +--restart always \ +realdaz/dazblog +``` + #### 数据库配置 [初始化数据库](./docs/devel/zh-CN/conversions/DB.md)