version: "3.9" services: app: container_name: beancount-gs 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" - "${dataPath:-/data/beancount}/config:/app/config"