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