---
title: "Docker Compose security"
description: "Checks compose files for privileged services, host namespaces, Docker socket mounts, dangerous capabilities, plaintext secrets, exposed database ports, mutable image tags and missing restart/healthcheck."
url: https://openaudit.se/auditors/container.compose/
---

# Docker Compose security

`container.compose`

Checks compose files for privileged services, host namespaces, Docker socket mounts, dangerous capabilities, plaintext secrets, exposed database ports, mutable image tags and missing restart/healthcheck.

- **Engine:** Built-in
- **Targets:** Container
- **Areas:** Security, Supply chain, Reliability
- **Runs:** By default, when the target applies
- **Network:** Only the target itself

## Run only this auditor

```sh
bunx @openaudit/cli image:nginx:1.27 --only container.compose
```

Built into openaudit; nothing to install.

## More security auditors

- [Dockerfile security & best practices](https://openaudit.se/auditors/container.dockerfile/) (`container.dockerfile`)
- [Container image scan](https://openaudit.se/auditors/container.image/) (`container.image`)
- [Dockle](https://openaudit.se/auditors/container.dockle/) (`container.dockle`)
- [Secrets & configuration review](https://openaudit.se/auditors/agent.secrets-config/) (`agent.secrets-config`)
- [Infrastructure architecture review](https://openaudit.se/auditors/agent.iac-architecture/) (`agent.iac-architecture`)
