DCLint categorizes its rules into several categories to help you ensure that your Docker Compose files meet specific standards.
These rules enforce consistency in formatting and structure to ensure that your Docker Compose files are easy to read and maintain. They focus on best practices related to code style, such as proper ordering of fields and avoiding unnecessary complexity.
- Volumes No Quotes Rule
- Service Dependencies Alphabetical Order Rule
- Service Keys Order Rule
- Service Ports Alphabetical Order Rule
- Services Alphabetical Order Rule
- Top-Level Properties Order Rule
Security rules focus on identifying potential vulnerabilities in your Docker Compose files. These rules help prevent common security risks, such as exposing sensitive data or using unsafe configurations.
- No Duplicate Container Names Rule
- No Duplicate Exported Ports Rule
- Service Container Name Regex Rule
- Service Image Require Explicit Tag Rule
These rules enforce general Docker Compose best practices, guiding you towards configurations that are known to work well. They help avoid pitfalls and ensure your configurations are reliable and maintainable.
- No Build and Image Rule
- No Version Field Rule
- Required Project Name Field Rule
- Require Quotes in Ports Rule
Performance rules are designed to optimize the runtime behavior of your Docker Compose setup. They identify configurations that could negatively impact performance, such as inefficient resource usage or misconfigurations that may lead to slower application performance.