From a0769db61a097b2eef50071b145ee408bbb3ecd4 Mon Sep 17 00:00:00 2001 From: daz-3ux Date: Tue, 17 Oct 2023 20:42:14 +0800 Subject: [PATCH] docs: update README Signed-off-by: daz-3ux --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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)