fix: Add HTTP proxy checks

This commit is contained in:
Andras Bacsai
2022-04-14 15:04:18 +02:00
parent 2bd3802a6f
commit 3a252509d0
2 changed files with 19 additions and 5 deletions

View File

@@ -127,10 +127,10 @@ export async function startTcpProxy(
const containerName = `haproxy-for-${publicPort}`;
const found = await checkContainer(engine, containerName);
const foundDB = await checkContainer(engine, id);
const foundDependentContainer = await checkContainer(engine, id);
try {
if (foundDB && !found) {
if (foundDependentContainer && !found) {
const { stdout: Config } = await asyncExecShell(
`DOCKER_HOST="${host}" docker network inspect bridge --format '{{json .IPAM.Config }}'`
);
@@ -157,10 +157,10 @@ export async function startHttpProxy(
const containerName = `haproxy-for-${publicPort}`;
const found = await checkContainer(engine, containerName);
const foundDB = await checkContainer(engine, id);
const foundDependentContainer = await checkContainer(engine, id);
try {
if (foundDB && !found) {
if (foundDependentContainer && !found) {
const { stdout: Config } = await asyncExecShell(
`DOCKER_HOST="${host}" docker network inspect bridge --format '{{json .IPAM.Config }}'`
);