This commit is contained in:
@@ -83,7 +83,12 @@ def validate_yaml_contracts() -> None:
|
||||
compose = parse_yaml(relative)
|
||||
if not isinstance(compose, dict) or not isinstance(compose.get("services"), dict):
|
||||
raise ValidationError(f"Composebestand mist services: {relative}")
|
||||
for service in ("web", "worker", "scheduler", "postgres", "redis"):
|
||||
required_services = (
|
||||
("app",)
|
||||
if relative == "docker-compose.unraid.yml"
|
||||
else ("web", "worker", "scheduler", "postgres", "redis")
|
||||
)
|
||||
for service in required_services:
|
||||
if service not in compose["services"]:
|
||||
raise ValidationError(f"{relative} mist service {service}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user