use pm2 to guard and monitor the web service in docker file (#2238)
parent
b4988ce20c
commit
965ca36525
@ -1,12 +1,11 @@
|
|||||||
{
|
{
|
||||||
"apps": [
|
"apps": [
|
||||||
{
|
{
|
||||||
"name": "WebApp",
|
"name": "dify-web",
|
||||||
"exec_mode": "cluster",
|
"script": "/app/web/server.js",
|
||||||
"instances": 1,
|
"cwd": "/app/web",
|
||||||
"script": "./node_modules/next/dist/bin/next",
|
"exec_mode": "cluster",
|
||||||
"cwd": "/app/web",
|
"instances": 2
|
||||||
"args": "start"
|
}
|
||||||
}
|
]
|
||||||
]
|
}
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue