From ad6057f0dd242de8d162714c93dc708169b87b25 Mon Sep 17 00:00:00 2001 From: mptyl Date: Mon, 20 Jul 2026 20:26:13 +0200 Subject: [PATCH] Fix PSD frontend network wiring --- deploy/compose.psd-local.yaml.example | 5 +++++ harness/tests/test_psd_local_compose_contract.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/deploy/compose.psd-local.yaml.example b/deploy/compose.psd-local.yaml.example index 6ffab682..bde297a6 100644 --- a/deploy/compose.psd-local.yaml.example +++ b/deploy/compose.psd-local.yaml.example @@ -31,6 +31,11 @@ services: - ./deploy/workspaces/psd.yaml:/app/harness/config/tht.yaml:ro - ${THT_PSD_WORKSPACE_HOST_PATH:?set THT_PSD_WORKSPACE_HOST_PATH}:/data/workspaces/psd + frontend: + networks: !override + default: + aliases: [frontend, thothii-frontend] + volumes: thoth_data: thoth_pi_config: diff --git a/harness/tests/test_psd_local_compose_contract.py b/harness/tests/test_psd_local_compose_contract.py index aa1ba22b..1bedb293 100644 --- a/harness/tests/test_psd_local_compose_contract.py +++ b/harness/tests/test_psd_local_compose_contract.py @@ -52,6 +52,10 @@ def test_psd_overlay_uses_generated_workspace_for_default_and_named_commands(): assert "/run/secrets/thothii.secrets" in targets assert set(compose["volumes"]) == {"thoth_data", "thoth_pi_config"} assert core["networks"]["default"]["aliases"] == ["core", "thothii-core"] + frontend = compose["services"]["frontend"] + assert frontend["networks"] == { + "default": {"aliases": ["frontend", "thothii-frontend"]} + } assert compose["networks"]["default"] == { "external": True, "name": "thothii_default",