Fix public edge interface assignments
Some checks are pending
Quality / full-local-gates (push) Waiting to run

This commit is contained in:
SimpleTest 2026-07-21 17:08:28 +03:00
parent ea3c527b24
commit 861da2899f
2 changed files with 17 additions and 0 deletions

View File

@ -2,12 +2,14 @@ services:
app: app:
networks: networks:
public_edge: public_edge:
interface_name: eth2
aliases: aliases:
- ${PUBLIC_UPSTREAM_NAME:?Set PUBLIC_UPSTREAM_NAME when PUBLIC_EDGE_ENABLED=true} - ${PUBLIC_UPSTREAM_NAME:?Set PUBLIC_UPSTREAM_NAME when PUBLIC_EDGE_ENABLED=true}
web: web:
networks: networks:
public_edge: public_edge:
interface_name: eth3
aliases: aliases:
- ${PUBLIC_UPSTREAM_NAME:?Set PUBLIC_UPSTREAM_NAME when PUBLIC_EDGE_ENABLED=true} - ${PUBLIC_UPSTREAM_NAME:?Set PUBLIC_UPSTREAM_NAME when PUBLIC_EDGE_ENABLED=true}

View File

@ -334,6 +334,13 @@ docker compose --project-directory "$ROOT" --env-file "$edge_env" \
./scripts/compose.sh "$external_production_env" config --quiet ./scripts/compose.sh "$external_production_env" config --quiet
./scripts/compose.sh "$external_socket_production_env" config --quiet ./scripts/compose.sh "$external_socket_production_env" config --quiet
./scripts/compose.sh "$external_split_production_env" config --quiet ./scripts/compose.sh "$external_split_production_env" config --quiet
./scripts/compose.sh "$staging_env" config --format json |
jq --exit-status '
.services.app.networks.internal.interface_name == "eth0" and
.services.app.networks.egress.interface_name == "eth1" and
.services.app.networks.public_edge.interface_name == "eth2" and
.services.app.networks.public_edge.aliases == ["who-need-help-staging"]
' >/dev/null
./scripts/compose.sh .env.example config --format json | ./scripts/compose.sh .env.example config --format json |
jq --exit-status ' jq --exit-status '
. as $root . as $root
@ -385,6 +392,9 @@ docker compose --project-directory "$ROOT" --env-file "$edge_env" \
.services.app.environment.APP_ROLE == "combined" and .services.app.environment.APP_ROLE == "combined" and
.services.app.environment.DNS_CLUSTER_QUERY == "ignore" and .services.app.environment.DNS_CLUSTER_QUERY == "ignore" and
.services.app.environment.POOL_SIZE == "4" and .services.app.environment.POOL_SIZE == "4" and
.services.app.networks.internal.interface_name == "eth0" and
.services.app.networks.egress.interface_name == "eth1" and
.services.app.networks.public_edge.interface_name == "eth2" and
.services.app.networks.public_edge.aliases == ["who-need-help-production"] and .services.app.networks.public_edge.aliases == ["who-need-help-production"] and
.networks.public_edge.external == true and .networks.public_edge.external == true and
.services.app.ports[0].host_ip == "127.0.0.1" .services.app.ports[0].host_ip == "127.0.0.1"
@ -396,6 +406,7 @@ docker compose --project-directory "$ROOT" --env-file "$edge_env" \
(.services | has("web") | not) and (.services | has("web") | not) and
(.services | has("worker") | not) and (.services | has("worker") | not) and
(.services | has("proxy") | not) and (.services | has("proxy") | not) and
.services.app.networks.public_edge.interface_name == "eth2" and
.services.app.networks.public_edge.aliases == ["who-need-help-production"] .services.app.networks.public_edge.aliases == ["who-need-help-production"]
' >/dev/null ' >/dev/null
./scripts/compose.sh "$external_socket_production_env" config --format json | ./scripts/compose.sh "$external_socket_production_env" config --format json |
@ -428,6 +439,10 @@ docker compose --project-directory "$ROOT" --env-file "$edge_env" \
(.services | has("web")) and (.services | has("web")) and
(.services | has("worker")) and (.services | has("worker")) and
(.services | has("proxy")) and (.services | has("proxy")) and
.services.web.networks.internal.interface_name == "eth0" and
.services.web.networks.ingress.interface_name == "eth1" and
.services.web.networks.egress.interface_name == "eth2" and
.services.web.networks.public_edge.interface_name == "eth3" and
.services.web.networks.public_edge.aliases == ["who-need-help-production"] and .services.web.networks.public_edge.aliases == ["who-need-help-production"] and
.services.web.deploy.replicas == 2 and .services.web.deploy.replicas == 2 and
.services.worker.deploy.replicas == 2 .services.worker.deploy.replicas == 2