DocuEye Logo

Database container must not have outgoing relationships

Database containers should not have outgoing relationships, because databases should be passive infrastructure components and must not depend on or call other containers. Replication and backup relationships may be allowed as an exception.

Identifier

C4-ARCH-008

Severity

Error - High impact on architecture quality

Scope

Model Relationships - This rule is evaluated against relationships in the architecture model.

Default expression
Source.Tags.Contains("Database") and Source.Tags.Contains("Container")

DocuEye - Visualize architecture.

Free and open source tool for software architecture visualization with built-in architecture linter.
Documentation as a code approach based C4 Model.

Copyright © 2026 DocuEye - All rights reserved

Resources

Sources and documentationC4 modelStructurizr DSL language reference