This commit is contained in:
Andras Bacsai 2023-02-21 13:08:14 +01:00
parent e530ecf9f9
commit 44b8812a7b

View File

@ -81,9 +81,9 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
if (!arm && template.services[s]?.volumes?.length > 0) {
template.services[s].volumes.forEach(v => volumes.add(v))
}
// Workaround: old plausible analytics service wrong volume id name
if (service.type === 'plausibleanalytics' && service.plausibleAnalytics?.id) {
console.log('old plausible analytics service')
let temp = Array.from(volumes)
temp.forEach(a => {
const t = a.replace(service.id, service.plausibleAnalytics.id)
@ -100,6 +100,7 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
}
}
}
console.log(s, Array.from(volumes))
let ports = []
if (template.services[s].proxy?.length > 0) {
for (const proxy of template.services[s].proxy) {