Skip to content

Commit c68b887

Browse files
authored
Merge pull request #202783 from craigshoemaker/patch-7
[Container Apps] Update multiple container guidance
2 parents 0eaee61 + 987fab4 commit c68b887

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/container-apps/containers.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,17 @@ When allocating resources, the total amount of CPUs and memory requested for all
133133

134134
## Multiple containers
135135

136-
You can define multiple containers in a single container app. The containers in a container app share hard disk and network resources and experience the same [application lifecycle](application-lifecycle-management.md).
136+
You can define multiple containers in a single container app to implement the [sidecar pattern](/azure/architecture/patterns/sidecar). The containers in a container app share hard disk and network resources and experience the same [application lifecycle](./application-lifecycle-management.md).
137137

138-
To run multiple containers in a container app, add more than one container in the `containers` array of the container app template.
138+
Examples of sidecar containers include:
139139

140-
Reasons to run containers together in a container app include:
140+
- An agent that reads logs from the primary app container on a [shared volume](storage-mounts.md?pivots=aca-cli#temporary-storage) and forwards them to a logging service.
141+
- A background process that refreshes a cache used by the primary app container in a shared volume.
141142

142-
- Use a container as a sidecar to your primary app.
143-
- Share disk space and the same virtual network.
144-
- Share scale rules among containers.
145-
- Group multiple containers that need to always run together.
146-
- Enable direct communication among containers.
143+
> [!NOTE]
144+
> Running multiple containers in a single container app is an advanced use case. You should use this pattern only in specific instances in which your containers are tightly coupled. In most situations where you want to run multiple containers, such as when implementing a microservice architecture, deploy each service as a separate container app.
145+
146+
To run multiple containers in a container app, add more than one container in the containers array of the container app template.
147147

148148
## Container registries
149149

0 commit comments

Comments
 (0)