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) { if (!arm && template.services[s]?.volumes?.length > 0) {
template.services[s].volumes.forEach(v => volumes.add(v)) template.services[s].volumes.forEach(v => volumes.add(v))
} }
// Workaround: old plausible analytics service wrong volume id name // Workaround: old plausible analytics service wrong volume id name
if (service.type === 'plausibleanalytics' && service.plausibleAnalytics?.id) { if (service.type === 'plausibleanalytics' && service.plausibleAnalytics?.id) {
console.log('old plausible analytics service')
let temp = Array.from(volumes) let temp = Array.from(volumes)
temp.forEach(a => { temp.forEach(a => {
const t = a.replace(service.id, service.plausibleAnalytics.id) 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 = [] let ports = []
if (template.services[s].proxy?.length > 0) { if (template.services[s].proxy?.length > 0) {
for (const proxy of template.services[s].proxy) { for (const proxy of template.services[s].proxy) {