Skip to content

Commit 6681ba7

Browse files
authored
Merge pull request #2185 from Dokploy/fix/make-monitoring-restart-automatically
feat(monitoring): add RestartPolicy configuration for server and web …
2 parents 19f7465 + 0b71411 commit 6681ba7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/server/src/setup/monitoring-setup.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export const setupMonitoring = async (serverId: string) => {
3030
// PidMode: "host",
3131
// CapAdd: ["NET_ADMIN", "SYS_ADMIN"],
3232
// Privileged: true,
33+
RestartPolicy: {
34+
Name: "always",
35+
},
3336
PortBindings: {
3437
[`${server.metricsConfig.server.port}/tcp`]: [
3538
{
@@ -103,6 +106,9 @@ export const setupWebMonitoring = async (userId: string) => {
103106
// PidMode: "host",
104107
// CapAdd: ["NET_ADMIN", "SYS_ADMIN"],
105108
// Privileged: true,
109+
RestartPolicy: {
110+
Name: "always",
111+
},
106112
PortBindings: {
107113
[`${user?.metricsConfig?.server?.port}/tcp`]: [
108114
{

0 commit comments

Comments
 (0)