Docker Compose File Pitfalls

Use when a Docker Compose file (compose.yaml, an override or a production overlay) is written, reviewed or debugged: an app starting before its database is ready (depends_on without a health condition, healthchecks with native client tools, a sidecar check for shell-less images), pinned tags, named volumes versus bind mounts, a production overlay without source mounts, secrets and defaults in variables, redeploying one service, validating the file, mounting the Docker socket (and a filtering proxy), and down -v, rm -v and volume prune deleting data. This is Docker Compose, not Jetpack Compose.

techmefr Updated

File contents

techmefr/mentis commit 2e489e98fb

Frequently asked questions

npx get-skill add techmefr/docker-compose-file-pitfalls