232517b58f51c4bb03d00a3f78baf46482ff50a7
Compose Anything
Compose Anything helps users quickly deploy various services by providing a set of high-quality Docker Compose configuration files. These configurations constrain resource usage, can be easily migrated to systems like K8S, and are easy to understand and modify.
Supported Services
| Service | Version |
|---|---|
| Redis | 8.2.1 |
| MinerU v2 | 2.5.3 |
| Bifrost Gateway | 1.2.15 |
| Docker Registry | 3.0.0 |
Guidelines
- Out-of-the-box: Configurations should work out-of-the-box, requiring no setup to start (at most, provide a
.envfile). - Simple Commands
- Each project provides a single
docker-compose.yamlfile. - Command complexity should not exceed the
docker composecommand; if it does, provide aMakefile. - If a service requires initialization, use
depends_onto simulate Init containers.
- Each project provides a single
- Stable Versions
- Provide the latest stable image version instead of
latest. - Allow version configuration via environment variables.
- Provide the latest stable image version instead of
- Highly Configurable
- Prefer configuration via environment variables rather than complex command-line arguments.
- Sensitive information like passwords should be passed via environment variables or mounted files, not hardcoded.
- Provide reasonable defaults so services can start with zero configuration.
- Provide a well-commented
.env.examplefile to help users get started quickly. - Use Profiles for optional dependencies.
- Cross-Platform: (Where supported by the image) Ensure compatibility with major platforms.
- Compatibility: Debian 12+/Ubuntu 22.04+, Windows 10+, macOS 12+.
- Support multiple architectures where possible, such as x86-64 and ARM64.
- Careful Mounting
- Use relative paths for configuration file mounts to ensure cross-platform compatibility.
- Use named volumes for data directories to avoid permission and compatibility issues with host path mounts.
- Default Resource Limits
- Limit CPU and memory usage for each service to prevent accidental resource exhaustion.
- Limit log file size to prevent logs from filling up the disk.
- For GPU services, enable single GPU by default.
- Comprehensive Documentation
- Provide good documentation and examples to help users get started and understand the configurations.
- Clearly explain how to initialize accounts, admin accounts, etc.
- Provide security and license notes when necessary.
- Offer LLM-friendly documentation for easy querying and understanding by language models.
- Best Practices: Follow other best practices to ensure security, performance, and maintainability.
License
MIT License.
Languages
Dockerfile
49.8%
JavaScript
30.4%
HTML
19.8%