Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhukai committed May 29, 2023
1 parent 9f8c013 commit 4c75942
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

1. 下载镜像
```shell
docker pull novicezk/wechat-midjourney:2.0
docker pull novicezk/wechat-midjourney:2.0.1
```
2. 启动容器
```shell
Expand All @@ -21,15 +21,15 @@ docker run -d --name wechat-midjourney \
-p 4120:4120 \
-v /xxx/xxx/config:/app/config \
--restart=always \
novicezk/wechat-midjourney:2.0
novicezk/wechat-midjourney:2.0.1

# 或启动时添加配置
docker run -d --name wechat-midjourney \
-p 4120:4120 \
-e MJ_PROXY_ENDPOINT=http://172.17.0.1:8080/mj \
-e MJ_NOFIFY_HOOK=http://172.17.0.1:4120/notify \
--restart=always \
novicezk/wechat-midjourney:2.0
novicezk/wechat-midjourney:2.0.1
```

3. 查看启动日志,微信扫描二维码,若二维码无法扫码,复制二维码链接浏览器打开扫码
Expand All @@ -55,4 +55,4 @@ npm run serve
| :-----| :----: | :---- |
| MJ_PROXY_ENDPOINT || midjourney代理服务的地址 |
| MJ_NOFIFY_HOOK || 当前服务的回调接收地址 |
| HTTP_PROXY || http代理地址 |
| HTTP_PROXY || http代理地址 |
9 changes: 5 additions & 4 deletions build-image.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash
set -e -u -o pipefail

VERSION=latest

if [ $# -ge 1 ]; then
VERSION=$1
if [ $# -lt 1 ]; then
echo 'version is required'
exit 1
fi

VERSION=$1

docker build . -t wechat-midjourney:${VERSION}

docker tag wechat-midjourney:${VERSION} novicezk/wechat-midjourney:${VERSION}
Expand Down

0 comments on commit 4c75942

Please sign in to comment.