update readme

This commit is contained in:
BaoXuebin 2022-07-26 22:59:51 +08:00
parent 6d85a8ab99
commit 2839749306
1 changed files with 1 additions and 5 deletions

View File

@ -49,8 +49,7 @@ docker run --name beancount-gs -dp 10000:80 \
-v "/data/beancount/icons:/app/public/icons" \
-v "/data/beancount/config:/app/config" \
-v "/data/beancount/bak:/app/bak" \
xdbin/beancount-gs:latest \
sh -c "cp -rn /app/public/default_icons/* /app/public/icons && ./beancount-gs -p 80"
xdbin/beancount-gs:latest
```
**docker-compose**
@ -63,9 +62,6 @@ services:
image: xdbin/beancount-gs:latest
ports:
- "10000:80"
# volumes 挂载目录会导 /app/public/icons 中的图标被覆盖,这里将默认图标在挂载后重新拷贝图标
command: >
sh -c "cp -rn /app/public/default_icons/* /app/public/icons && ./beancount-gs -p 80"
volumes:
- "${dataPath:-/data/beancount}:${dataPath:-/data/beancount}"
- "${dataPath:-/data/beancount}/icons:/app/public/icons"