---
title: Deployment Diagram Example | Nodinite C4 Diagrams
description: "Deployment diagram example built on the Order-to-Cash demo data: the 14 Services of INT1337 - Order-to-Cash as Container Instances on the three servers they log from. Copy-paste Mermaid markup, how Container Instances import and export, and what each element binds to."
---

# <i class="fal fa-server" aria-hidden="true"></i> Deployment Diagram Example

The Deployment diagram shows **where the [Services][] run**: the servers, cloud services, network zones and environments that host them. Each Service is drawn as a **Container Instance** inside the infrastructure node it runs on.

This page is example 6 of the six [Order-to-Cash C4 examples][Hub]. See [Example C4 Diagrams][] for an overview of all diagram types and when to use each.

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p><strong>To use this example in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>,</strong> copy the Mermaid markup below and follow the <a href="https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/import-your-first-c4-diagram/">Import Your First C4 Diagram</a> walkthrough to create a <a href="https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-a-c4-diagram-set/">C4 Diagram Set</a> and <a href="https://docs.nodinite.com/repository-model/c4-diagrams/features/import/">import</a> the markup. The Container Instances bind to Services (or <a href="https://docs.nodinite.com/getting-started/repository/contracts/overview/">Contracts</a>); the servers stay unbound labels.</p></div>
</aside>

## Scope for This Example

| Example | Diagram type to pick in the import | Architectural Scope | Subject | When it is set | Needed before Promote |
|---|---|---|---|---|---|
| Order-to-Cash — on servers | Deployment | none | — | optional: the wizard's **Scope** step may name one [System][Systems]; leave it empty for the O2C | ❌ No |

<sup><span class="nodinite-new-badge">New 7.12</span></sup> A Deployment has no [Architectural Scope][Diagram Set Fundamentals] or one System, and it can be promoted without one. Click **Skip** in the wizard's **Scope** step. Scoped to a System, the Deployment shows in that System's **Related view** pill; the O2C Deployment has no scope.

## When to Use

* ✅ Documenting production infrastructure for operations and DevOps teams  
* ✅ Showing which server each Service runs on before a migration or a server change  
* ✅ Security reviews: seeing what runs together on one host  
* ⚠️ Does not show what happens inside a Service: that is in [L2][L2 Example] and [L3][L3 Example]  

## Example: Order-to-Cash — on servers

This example uses the [Order-to-Cash (O2C) demo][O2C Overview] data. The three servers are the `ProcessingMachineName` values that the [O2C demo data script][Generate O2C Demo Data Script] logs from: **portal-server-01**, **erp-server-01** and **wms-server-01**. Each of the **14 Services** of *INT1337 - Order-to-Cash* is drawn on the server it logs from; ERP-Finance's two Services run on erp-server-01. The sample has no relationships: the Flows between these Services are on the [L2][L2 Example] and the [Dynamic][Dynamic Example].

<table>
<tr>
<th><i class="fal fa-eye" aria-hidden="true"></i> Preview</th>
<th><i class="fal fa-code" aria-hidden="true"></i> Mermaid Code</th>
</tr>
<tr>
<td>

```mermaid
C4Deployment
    title Order-to-Cash — on servers
    Deployment_Node(portal_server, "portal-server-01", "Windows Server") {
    Container(rcv_order_incoming, "INT1337-RCV-Order-Incoming", "Integration")
    Container(snd_order_incoming, "INT1337-SND-Order-Incoming", "Integration")
    Container(rcv_confirm_incoming, "INT1337-RCV-Confirm-Incoming", "Integration")
    Container(snd_confirm_outgoing, "INT1337-SND-Confirm-Outgoing", "Integration")
    }
    Deployment_Node(erp_server, "erp-server-01", "Windows Server") {
    Container(rcv_order_entry, "INT1337-RCV-Order-Entry", "Integration")
    Container(ent_order_entry, "INT1337-ENT-Order-Entry", "Integration")
    Container(rcv_planned_incoming, "INT1337-RCV-Planned-Incoming", "Integration")
    Container(pln_order_scheduled, "INT1337-PLN-Order-Scheduled", "Integration")
    Container(rcv_invoice_incoming, "INT1337-RCV-Invoice-Incoming", "Integration")
    Container(inv_order_invoiced, "INT1337-INV-Order-Invoiced", "Integration")
    }
    Deployment_Node(wms_server, "wms-server-01", "Windows Server") {
    Container(rcv_packing_incoming, "INT1337-RCV-Packing-Incoming", "Integration")
    Container(pkg_order_packed, "INT1337-PKG-Order-Packed", "Integration")
    Container(rcv_delivered_incoming, "INT1337-RCV-Order-Delivered-Incoming", "Integration")
    Container(rcv_order_delivered, "INT1337-RCV-Order-Delivered", "Integration")
    }
```

</td>
<td>

```text
C4Deployment
title Order-to-Cash — on servers
Deployment_Node(portal_server, "portal-server-01", "Windows Server") {
Container(rcv_order_incoming, "INT1337-RCV-Order-Incoming", "Integration")
Container(snd_order_incoming, "INT1337-SND-Order-Incoming", "Integration")
Container(rcv_confirm_incoming, "INT1337-RCV-Confirm-Incoming", "Integration")
Container(snd_confirm_outgoing, "INT1337-SND-Confirm-Outgoing", "Integration")
}
Deployment_Node(erp_server, "erp-server-01", "Windows Server") {
Container(rcv_order_entry, "INT1337-RCV-Order-Entry", "Integration")
Container(ent_order_entry, "INT1337-ENT-Order-Entry", "Integration")
Container(rcv_planned_incoming, "INT1337-RCV-Planned-Incoming", "Integration")
Container(pln_order_scheduled, "INT1337-PLN-Order-Scheduled", "Integration")
Container(rcv_invoice_incoming, "INT1337-RCV-Invoice-Incoming", "Integration")
Container(inv_order_invoiced, "INT1337-INV-Order-Invoiced", "Integration")
}
Deployment_Node(wms_server, "wms-server-01", "Windows Server") {
Container(rcv_packing_incoming, "INT1337-RCV-Packing-Incoming", "Integration")
Container(pkg_order_packed, "INT1337-PKG-Order-Packed", "Integration")
Container(rcv_delivered_incoming, "INT1337-RCV-Order-Delivered-Incoming", "Integration")
Container(rcv_order_delivered, "INT1337-RCV-Order-Delivered", "Integration")
}
```

</td>
</tr>
</table>

![A Diagram Set's Import: the Order-to-Cash — on servers markup pasted, Next, Import, the deployment opened with the three unbound servers portal-server-01, erp-server-01 and wms-server-01 holding the 14 Services as Container Instances and no Flows, zoomed in, and INT1337-ENT-Order-Entry's menu with View opening the Service, animated walkthrough (7.12)][1]  
*Animated walkthrough: the markup above imported. The servers stay unbound labels, and each Container Instance is bound to its Service.*  

## What Each Element Binds To

| Markup element | Macro | Stored as | Binds to | Status in Review & Resolve |
|---|---|---|---|---|
| portal-server-01, erp-server-01, wms-server-01 | `Deployment_Node` | Deployment Node | Nothing: an unbound label | Unbound |
| The 14 `INT1337-*` Services | `Container` | <sup><span class="nodinite-new-badge">New 7.12</span></sup> Container Instance | The Services of the same name | Matched |

After **Resolve All**, the diagram holds 14 Container Instances bound to the Services and three unbound servers.

### Container Instances in Mermaid

<sup><span class="nodinite-new-badge">New 7.12</span></sup> Mermaid and PlantUML have no `Container_Instance` macro. A Deployment export writes each Container Instance as a `Container` inside its `Deployment_Node`, and the import stores a `Container` on a Deployment as a Container Instance. Write Deployment samples with `Container`, as above. The Designer's Toolbox offers **Container Instance** and **Container Instance (External)** for a Deployment, and no plain Container.

A Container Instance binds to a Service or a Contract and shows its monitoring state. Deployment nodes and infrastructure nodes are **unbound labels**: they bind to neither a [Domain][Domains] nor a Service, and a Deployment has no **Domain** filter chip. Never draw a System as a Container on a Deployment: a Container named after a System imports as an unbound placeholder with the note to draw it as a System shape.

Connectors between two nodes fold into one per node pair, holding one Flow per relation.

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p><strong>Structure round-trips:</strong> infrastructure groupings (<code>Deployment_Node</code> boundaries) are stored with their boundary type and parent, and the types and nesting round-trip through the Mermaid generator. The regenerated markup is not identical to the imported text: it adds icons, Component types and <code>%% nodinite:node</code> metadata lines, and may list the relationships in another order.</p></div>
</aside>

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>No Person shapes in Deployment diagrams:</strong> <code>Person</code> and <code>Person_Ext</code> must <strong>not</strong> appear in <code>C4Deployment</code> diagrams. Deployment diagrams describe infrastructure; human actors belong on the System Landscape, Context and Dynamic diagrams. Adding a <code>Person</code> here produces a render error.</p></div>
</aside>

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-hammer" aria-hidden="true"></i> [Build the Order-to-Cash C4 set][] — Put all six examples in one set and generate the rest  
* <i class="fal fa-upload" aria-hidden="true"></i> [Import Your First C4 Diagram][] — Create a Diagram Set, import Mermaid markup, and bind nodes to your Repository  
* <i class="fal fa-book" aria-hidden="true"></i> [Order-to-Cash C4 Examples][Hub]  
* <i class="fal fa-pencil" aria-hidden="true"></i> [Creating Your First C4 Diagram][] — Build a diagram by hand instead  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-book" aria-hidden="true"></i> [Example C4 Diagrams][] — Overview of all diagram types  
* <i class="fal fa-container-storage" aria-hidden="true"></i> [L2: Container Diagram Example][L2 Example] — The Portal's Services and their Flows  
* <i class="fal fa-cube" aria-hidden="true"></i> [L3: Component Diagram Example][L3 Example] — Inside one Service  
* <i class="fal fa-random" aria-hidden="true"></i> [Dynamic Diagram Example][Dynamic Example] — Runtime interaction sequence  
* <i class="fal fa-terminal" aria-hidden="true"></i> [Generate O2C Demo Data Script][]  
* <i class="fal fa-compass" aria-hidden="true"></i> [What is C4 Diagrams?][What is C4 Diagrams?]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/Examples/C4Example_Deployment.gif

[Build the Order-to-Cash C4 set]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/build-the-order-to-cash-c4-set/
[Contracts]:https://docs.nodinite.com/getting-started/repository/contracts/overview/
[Creating Your First C4 Diagram]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/creating-your-first-c4-diagram/
[Diagram Set Fundamentals]:https://docs.nodinite.com/repository-model/c4-diagrams/features/diagram-set-fundamentals/
[Domains]:https://docs.nodinite.com/repository-model/domains/overview/
[Dynamic Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/dynamic-diagram-example/
[Example C4 Diagrams]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/example-c4-diagrams/
[Generate O2C Demo Data Script]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data-script/
[Hub]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/overview/
[Import]:https://docs.nodinite.com/repository-model/c4-diagrams/features/import/
[Import Your First C4 Diagram]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/import-your-first-c4-diagram/
[L2 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/l2-container-diagram-example/
[L3 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/l3-component-diagram-example/
[O2C Overview]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/overview/
[Services]:https://docs.nodinite.com/repository-model/services/overview/
[Systems]:https://docs.nodinite.com/repository-model/systems/overview/
[What is a C4 Diagram Set?]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-a-c4-diagram-set/
[What is C4 Diagrams?]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-c4-diagrams/