Nriver / trilium-translation

Translation for Trilium Notes. Trilium Notes 中文适配, 体验优化
GNU Affero General Public License v3.0
2.44k stars 286 forks source link

在docker compose中启用“健康检查”出问题 #71

Closed carcoonzyk closed 1 year ago

carcoonzyk commented 1 year ago

如题,命令行输入docker compose up返回错误: yaml: line 15: did not find expected ',' or ']' line 15: healthcheck: test: ["CMD-SHELL", "curl --fail http://localhost:8080/api/health-check | jq -e '.status == "ok"' || exit 1"] interval: 30s timeout: 10s retries: 3

Nriver commented 1 year ago

检查你的空格缩进是不是有问题

carcoonzyk commented 1 year ago

检查你的空格缩进是不是有问题 我只是将原来的docker-compose.yaml文件中注释的符号‘#’ 去除

carcoonzyk commented 1 year ago

检查你的空格缩进是不是有问题 已解决: 将原本docker-compose.yaml中 status == "ok" 把双引号改为单引号,即 status == 'ok' 得以通过