feat: Add n8n.io service

This commit is contained in:
Andras Bacsai
2022-03-27 13:49:04 +02:00
parent 2b0d162226
commit a6ebfb08f7
10 changed files with 178 additions and 3 deletions

View File

@@ -165,6 +165,15 @@ export const supportedServiceTypesAndVersions = [
ports: {
main: 8010
}
},
{
name: 'n8n',
fancyName: 'n8n',
baseImage: 'n8nio/n8n',
versions: ['latest'],
ports: {
main: 5678
}
}
];

View File

@@ -119,6 +119,13 @@ export async function configureServiceType({ id, type }) {
type
}
});
} else if (type === 'n8n') {
await prisma.service.update({
where: { id },
data: {
type
}
});
}
}
export async function setServiceVersion({ id, version }) {
@@ -139,7 +146,7 @@ export async function updatePlausibleAnalyticsService({ id, fqdn, email, usernam
await prisma.plausibleAnalytics.update({ where: { serviceId: id }, data: { email, username } });
await prisma.service.update({ where: { id }, data: { name, fqdn } });
}
export async function updateNocoDbOrMinioService({ id, fqdn, name }) {
export async function updateService({ id, fqdn, name }) {
return await prisma.service.update({ where: { id }, data: { fqdn, name } });
}
export async function updateLanguageToolService({ id, fqdn, name }) {