diff --git a/README.md b/README.md index 628202a..f930301 100644 --- a/README.md +++ b/README.md @@ -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"