next-terminal
next-terminal copied to clipboard
在NAS的docker中部署无法启动
飞牛NAS的docker中部署最新版无法启动,一直提示在反复重启。看了下日志显示有错误显示如下
main.main()
/app/cmd/server/main.go:167 +0xf
panic: read config err: open /etc/next-terminal/config.yaml: no such file or directory
之前老版本是可以正常启动使用的。
新版本更新了配置文件,并且增加了 -c 参数来选择配置文件路径
折腾几天还是没搞定,算了我还是用老版本吧 image: dushixiang/next-terminal:v1.3.9
现在的配置文件是在外部的,你使用 docker run 运行的时候需要用 -v 参数正确映射到容器内部,并且根据你的实际环境修改数据库地址、账号、密码。
pg 数据库配置示例
https://f.typesafe.cn/next-terminal/config-postgres.yaml
mysql 数据库配置示例
https://f.typesafe.cn/next-terminal/config-mysql.yaml
sqlite的示例也有:
https://f.typesafe.cn/next-terminal/config-sqlite.yaml