首页 > 解决方案 > 无法使用 docker 运行 Invoice ninja

问题描述

这是我在这里的第一篇文章,我想在我的机器上使用 Docker 使用 Invoice 并在本地访问它

这是我完成的步骤

在 Connection.php 第 678 行:SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = ninja and table_name = accun
ts and table_type = 'BASE TABLE')
在 Exception.php 行18: SQLSTATE[HY000] [2002] 没有这样的文件或目录

在 PDOConnection.php 第 38 行: SQLSTATE[HY000] [2002] No such file or directory

- 最后我运行 docker-compose up 当我在浏览器中输入 in5.test 时,我得到一个找不到页面但是如果我输入 in5.test.localhost 我得到这个页面有错误 https://ibb.co/Zzs5w9b

问题,在撰写文件中有一些带有 extra_hosts 的行:-“in5.localhost:192.168.0.124”#host 和 ip 我更改了 IP 地址以匹配我的本地 IP,但是当我这样做并转到 in5.test.localhost我得到一个 502 bad gateway nginx

有人可以告诉我我做错了什么吗?

标签: dockerinvoice-ninja

解决方案


推荐阅读