diff --git a/compose.yaml b/compose.yaml index 76e0011..86de9f2 100644 --- a/compose.yaml +++ b/compose.yaml @@ -11,6 +11,9 @@ services: - no-new-privileges:true expose: - "8080" + labels: + - traefik.http.routers.http-0-${COOLIFY_RESOURCE_UUID:?required}-site.priority=500 + - traefik.http.routers.https-0-${COOLIFY_RESOURCE_UUID:?required}-site.priority=500 tmpfs: - /tmp:rw,noexec,nosuid,size=16m - /var/cache/nginx:rw,noexec,nosuid,size=16m diff --git a/tests/test_compose_contract.py b/tests/test_compose_contract.py index e742621..8eaf3b6 100644 --- a/tests/test_compose_contract.py +++ b/tests/test_compose_contract.py @@ -246,6 +246,9 @@ class ComposeContract(unittest.TestCase): meaningful = "\n".join( line.split("#", 1)[0] for line in self.source.splitlines() ) + meaningful = meaningful.replace( + "${COOLIFY_RESOURCE_UUID:?required}", "$COOLIFY_RESOURCE_UUID" + ) self.assertNotRegex(meaningful, r"[{}]|(?:^|\s)[&*][A-Za-z0-9_-]+|<<\s*:")