debug
This commit is contained in:
@@ -34,33 +34,36 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
|
|||||||
const { network, id: dockerId } = destinationDocker;
|
const { network, id: dockerId } = destinationDocker;
|
||||||
const isRunning = true;
|
const isRunning = true;
|
||||||
if (buildPack === 'compose') {
|
if (buildPack === 'compose') {
|
||||||
|
console.log(dockerComposeConfiguration)
|
||||||
const services = Object.entries(JSON.parse(dockerComposeConfiguration))
|
const services = Object.entries(JSON.parse(dockerComposeConfiguration))
|
||||||
for (const service of services) {
|
console.log(services)
|
||||||
const [key, value] = service
|
if (services.length > 0) {
|
||||||
if (value.fqdn) {
|
for (const service of services) {
|
||||||
const { fqdn } = value
|
const [key, value] = service
|
||||||
const domain = getDomain(fqdn);
|
if (key && value && value.fqdn) {
|
||||||
const nakedDomain = domain.replace(/^www\./, '');
|
const { fqdn } = value
|
||||||
const isHttps = fqdn.startsWith('https://');
|
const domain = getDomain(fqdn);
|
||||||
const isWWW = fqdn.includes('www.');
|
const nakedDomain = domain.replace(/^www\./, '');
|
||||||
configurableApplications.push({
|
const isHttps = fqdn.startsWith('https://');
|
||||||
id: `${id}-${key}`,
|
const isWWW = fqdn.includes('www.');
|
||||||
container: `${id}-${key}`,
|
configurableApplications.push({
|
||||||
port: value.customPort ? value.customPort : port || 3000,
|
id: `${id}-${key}`,
|
||||||
domain,
|
container: `${id}-${key}`,
|
||||||
nakedDomain,
|
port: value.customPort ? value.customPort : port || 3000,
|
||||||
isRunning,
|
domain,
|
||||||
isHttps,
|
nakedDomain,
|
||||||
isWWW,
|
isRunning,
|
||||||
isDualCerts: dualCerts,
|
isHttps,
|
||||||
isCustomSSL,
|
isWWW,
|
||||||
pathPrefix: '/'
|
isDualCerts: dualCerts,
|
||||||
});
|
isCustomSSL,
|
||||||
|
pathPrefix: '/'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fqdn) {
|
if (fqdn) {
|
||||||
const domain = getDomain(fqdn);
|
const domain = getDomain(fqdn);
|
||||||
const nakedDomain = domain.replace(/^www\./, '');
|
const nakedDomain = domain.replace(/^www\./, '');
|
||||||
|
Reference in New Issue
Block a user