[quote][size=2][url=forum.php?mod=redirect&goto=findpost&pid=143598&ptid=27757][color=#999999]zbxg01 发表于 2025-7-6 14:31[/color][/url][/size]
文件夹里.env的文件名,需要与.yaml内容里的env文件名保持完全一致[/quote]
请教下如何YAML 下如何写
我再yaml 下
env_file:
- ./.env
这样写 构建会报错
services.env_file must be a mapping Exited:0
写个名字,并且名字改为定义的
就是报错
time="2025-10-14T17:07:15+08:00" level=warning msg="The \"NEXTAUTH_SECRET\" variable is not set. Defaulting to a blank string." services.env_file must be a mapping Exited:0
请教下具体怎么用 env 文件的格式。