如何在dokku node.js应用程序内运行docker命令?

时间:2018-08-29 06:59:36

标签: node.js docker docker-compose dokku prisma

我有node.js应用程序托管在数字海洋上,并使用dokku进行了部署。我需要在该应用程序中运行命令docker-compose up -d才能启动prisma docs中提到的数据库和Prisma服务器。

我尝试运行dokku run my-node-js-app "docker-compose up -d",但出现此错误:

Could not determine a reasonable value for WEB_CONCURRENCY.
This is likely due to running the Heroku NodeJS buildpack on a non-Heroku platform.

WEB_CONCURRENCY has been set to 1. Please review whether this value is appropriate for your application.

setuidgid: fatal: unable to run docker-compose: file does not exist

我检查了一下,我的项目中有docker-compose.yml个文件。

1 个答案:

答案 0 :(得分:0)

我忘记通过运行prisma安装npm i -g prisma