Comments (7)
通过docker-compose 创建容器,然后在网页上创建账本,能看到日志是输出了create file success,但是在物理机上映射的目录中找不到该文件,只有在docker容器内部才能找到
from beancount-gs.
@BaoXuebin :
作者您好,有關這個帳本存儲位置應寫入/data/beancount
配置,是不是考慮寫在說明文檔中呢?我在配置docker時也遇到這個問題,還要來這邊翻issue才找到解答,對初用beancount-gs的用戶來說,有點小障礙,謝謝。
from beancount-gs.
https://github.com/BaoXuebin/beancount-gs/blob/main/docker-compose.yml
如果不设置参数,账本文件会创建到物理机器的 /data/beancount
文件夹。
from beancount-gs.
version: "3.9"
services:
app:
container_name: beancount-gs
image: xdbin/beancount-gs:latest
environment:
- PUID=1000
- PGID=100
- TZ=Asia/Shanghai
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:-/srv/dev-disk-by-uuid-{删掉的hash}/self/data/beancount}:${dataPath:-/data/beancount}"
- "${dataPath:-/srv/dev-disk-by-uuid-{删掉的hash}/self/data/beancount/public}/icons:/app/public/icons"
- "${dataPath:-/srv/dev-disk-by-uuid-{删掉的hash}/self/data/beancount}/config:/app/config"
- "${dataPath:-/srv/dev-disk-by-uuid-{删掉的hash}/self/data/beancount}/bak:/app/bak"
restart: unless-stopped
就这么写的啊
from beancount-gs.
按照这个写法,你在 docker 中的 /data/beancount
会映射到宿主机的 /srv/dev-disk-by-uuid/self/data/beancount
这个目录。其他目录则只会存在 docker 中,而不会映射到宿主机。
上图中,账本存储位置 定义了数据存储位置,必须设置为 /data/beancount
,如果设置了其他路径,会导致无法出现在物理机器上。
你可以进入 docker,删除 /config/config.json
,然后 docker-compose up
启动 docker 镜像重新配置 账本存储位置。
from beancount-gs.
原来如此,明白了。感谢
from beancount-gs.
不错的建议
from beancount-gs.
Related Issues (20)
- 无法修改过去账目 HOT 1
- 通过网页访问安全问题 HOT 4
- 1.1.12版本的docker部署完成之后不能使用 HOT 2
- 前端頁面翻譯 HOT 1
- 记账页面汇率/净值的转换错误 HOT 1
- pad balance是不支持吗 HOT 3
- 支付宝账单在官方网页已经无法下载 手机下载的账单无法导入 HOT 1
- 提问:是否能给导入的账单保留可选的时间戳字段用于查重 HOT 2
- 没有显示记录账目 HOT 3
- 账户默认图标
- 无法支持已有账户类型以外的自定义账户 HOT 8
- 关于资产负债统计按年统计显示不正确问题 HOT 4
- Docker部署成功后闪退~ HOT 7
- operating_currency 配置多个货币的时候,本项目只支持读取到第一个, HOT 7
- operating_currency 配置多个货币的时候,本项目只支持读取到第一个,
- 测试覆盖率完善
- 跨币种时,模版中汇率无法回显 HOT 2
- 跨币种时的记账在fava上的显示 HOT 2
- docker部署后怎么获取密钥 HOT 2
- 对于关闭又打开的账户,无法被加载到账户列表
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beancount-gs.