feat: custom/private docker registries

This commit is contained in:
Andras Bacsai
2022-11-23 14:39:30 +01:00
parent 03861af893
commit d4f10a9af3
7 changed files with 301 additions and 3 deletions

View File

@@ -23,7 +23,6 @@ async function main() {
},
data: {
isTraefikUsed: true,
proxyHash: null
}
});
}
@@ -92,6 +91,11 @@ async function main() {
}
}
}
// Add default docker registry (dockerhub)
const registries = await prisma.dockerRegistry.findMany()
if (registries.length === 0) {
await prisma.dockerRegistry.create({ data: { id: "0", name: 'Docker Hub', url: 'https://index.docker.io/v1/', isSystemWide: true } })
}
}
main()
.catch((e) => {