fixes
This commit is contained in:
parent
e563988596
commit
59086e9eb4
@ -166,13 +166,17 @@ export async function startTraefikTCPProxy(
|
|||||||
ports: [`${publicPort}:${publicPort}`],
|
ports: [`${publicPort}:${publicPort}`],
|
||||||
extra_hosts: ['host.docker.internal:host-gateway', `host.docker.internal:${ip}`],
|
extra_hosts: ['host.docker.internal:host-gateway', `host.docker.internal:${ip}`],
|
||||||
volumes: ['/var/run/docker.sock:/var/run/docker.sock'],
|
volumes: ['/var/run/docker.sock:/var/run/docker.sock'],
|
||||||
networks: [network]
|
networks: ['coolify-infra', network]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
networks: {
|
networks: {
|
||||||
[network]: {
|
[network]: {
|
||||||
external: false,
|
external: false,
|
||||||
name: network
|
name: network
|
||||||
|
},
|
||||||
|
'coolify-infra': {
|
||||||
|
external: false,
|
||||||
|
name: 'coolify-infra'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -262,13 +266,17 @@ export async function startTraefikHTTPProxy(
|
|||||||
ports: [`${publicPort}:${publicPort}`],
|
ports: [`${publicPort}:${publicPort}`],
|
||||||
extra_hosts: ['host.docker.internal:host-gateway', `host.docker.internal:${ip}`],
|
extra_hosts: ['host.docker.internal:host-gateway', `host.docker.internal:${ip}`],
|
||||||
volumes: ['/var/run/docker.sock:/var/run/docker.sock'],
|
volumes: ['/var/run/docker.sock:/var/run/docker.sock'],
|
||||||
networks: [network]
|
networks: ['coolify-infra', network]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
networks: {
|
networks: {
|
||||||
[network]: {
|
[network]: {
|
||||||
external: false,
|
external: false,
|
||||||
name: network
|
name: network
|
||||||
|
},
|
||||||
|
'coolify-infra': {
|
||||||
|
external: false,
|
||||||
|
name: 'coolify-infra'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -6,12 +6,7 @@ import * as db from '$lib/database';
|
|||||||
import type { RequestHandler } from '@sveltejs/kit';
|
import type { RequestHandler } from '@sveltejs/kit';
|
||||||
import compare from 'compare-versions';
|
import compare from 'compare-versions';
|
||||||
import got from 'got';
|
import got from 'got';
|
||||||
import {
|
import { checkContainer, startCoolifyProxy, startTraefikProxy } from '$lib/haproxy';
|
||||||
checkContainer,
|
|
||||||
configureNetworkTraefikProxy,
|
|
||||||
startCoolifyProxy,
|
|
||||||
startTraefikProxy
|
|
||||||
} from '$lib/haproxy';
|
|
||||||
|
|
||||||
export const get: RequestHandler = async (request) => {
|
export const get: RequestHandler = async (request) => {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user