---
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."
---

# :fa-server: 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.

>[!INFO]
>**To use this example in :Nodinite:,** copy the Mermaid markup below and follow the [Import Your First C4 Diagram][Import Your First C4 Diagram] walkthrough to create a [C4 Diagram Set][What is a C4 Diagram Set?] and [import][Import] the markup. The Container Instances bind to Services (or [Contracts][]); the servers stay unbound labels.

## 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 |

:new7.12: 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>:fa-eye: Preview</th>
<th>:fa-code: 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` | :new7.12: 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

:new7.12: 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.

>[!INFO]
>**Structure round-trips:** infrastructure groupings (`Deployment_Node` 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 `%% nodinite:node` metadata lines, and may list the relationships in another order.

>[!IMPORTANT]
>**No Person shapes in Deployment diagrams:** `Person` and `Person_Ext` must **not** appear in `C4Deployment` diagrams. Deployment diagrams describe infrastructure; human actors belong on the System Landscape, Context and Dynamic diagrams. Adding a `Person` here produces a render error.

## :fa-hand-point-right: Next Steps

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

## :fa-link-horizontal: Related Topics

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

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Examples/C4Example_Deployment.gif

[Build the Order-to-Cash C4 set]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/Build%20the%20Order-to-Cash%20C4%20set.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[Creating Your First C4 Diagram]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Creating%20Your%20First%20C4%20Diagram.md
[Diagram Set Fundamentals]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Diagram%20Set%20Fundamentals.md
[Domains]:{ndr}/Repository%20Model/Domains/Overview.md
[Dynamic Example]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/Dynamic%20Diagram%20Example.md
[Example C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Example%20C4%20Diagrams.md
[Generate O2C Demo Data Script]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Generate-O2C-Demo-Data-Script.md
[Hub]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/Overview.md
[Import]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Import.md
[Import Your First C4 Diagram]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Import%20Your%20First%20C4%20Diagram.md
[L2 Example]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/L2%20Container%20Diagram%20Example.md
[L3 Example]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/L3%20Component%20Diagram%20Example.md
[O2C Overview]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Overview.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[What is a C4 Diagram Set?]:{ndr}/Repository%20Model/C4%20Diagrams/Features/What%20is%20a%20C4%20Diagram%20Set.md
[What is C4 Diagrams?]:{ndr}/Repository%20Model/C4%20Diagrams/Features/What%20is%20C4%20Diagrams.md