AiderDockerArchitecture

Docker Aider Conventions

Aider conventions for Docker and containerization: file naming, structure, and container patterns.

CONVENTIONS.md
- Name Dockerfiles by target: Dockerfile (production), Dockerfile.dev (development)
- Use docker-compose.yml for local dev; docker-compose.override.yml for personal overrides
- Add docker-compose.override.yml to .gitignore; commit only docker-compose.yml
- Name compose services consistently with the domain concept they serve
- Use .env.example for documenting required environment variables
- Tag production images with semantic versions, not just latest
- Store registry credentials in CI secrets; never in Dockerfiles or compose files
- Document the expected port mappings and volume mounts in README

How to use with Aider

Create a `CONVENTIONS.md` file in your project root. Aider reads this and respects your conventions when generating changes.

#docker#aider#conventions#compose#coding-rules

Related Rules