feat: Add update kuma service

This commit is contained in:
Andras Bacsai
2022-03-27 14:05:36 +02:00
parent c615f6c07e
commit a742a3d2e3
9 changed files with 312 additions and 0 deletions

View File

@@ -174,6 +174,15 @@ export const supportedServiceTypesAndVersions = [
ports: {
main: 5678
}
},
{
name: 'uptimekuma',
fancyName: 'Uptime Kuma',
baseImage: 'louislam/uptime-kuma',
versions: ['latest'],
ports: {
main: 3001
}
}
];

View File

@@ -126,6 +126,13 @@ export async function configureServiceType({ id, type }) {
type
}
});
} else if (type === 'uptimekuma') {
await prisma.service.update({
where: { id },
data: {
type
}
});
}
}
export async function setServiceVersion({ id, version }) {