docker - 无法使用 docker 运行 Invoice ninja
问题描述
这是我在这里的第一篇文章,我想在我的机器上使用 Docker 使用 Invoice 并在本地访问它
这是我完成的步骤
- 克隆了回购https://github.com/invoiceninja/dockerfiles.git
- 生成 APP_KEY 问题,当我生成应用程序密钥时,我收到此错误消息,它们应该出现吗?
在 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
使用 APP_KEY=base64 编辑 env 文件:...
运行 chown -R 命令
我想在本地访问 Invoice Ninja,所以我将 APP_URL 更改为http://in5.test:8000
更改了 config/hosts 文件中的 IP 地址
- 最后我运行 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
有人可以告诉我我做错了什么吗?
解决方案
推荐阅读
- python-3.x - 如何在自动使用模式下获取 pytest 夹具返回值?
- python - 如何找到乘以浮点数列表时使所有值都为整数的最小整数?
- c# - 为什么允许我们在条件运算符的 else 子句中使用由“is”表达式定义的参数?
- python - 为什么我在 vscode 中的文件在尝试执行后一直被删除?
- laravel - 在 Laravel 中搜索和获取特定用户
- python - 如何比较体育游戏中python中相似字符串的列表?
- node.js - 如何从 log4js 中获取当前的实时日志数据?
- android-constraintlayout - 在 Constraintlayout 中水平对齐两个 TextView
- markdown - 使用 FrontMatter 来拉取 110 的相关帖子集合?
- sql - Row_Number 基于两列