docs(infra): document Compose profile + down/up symmetry gotcha #67
Reference in New Issue
Block a user
Delete Branch "docs/infra/compose-profiles-down-gotcha"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
docker compose -f infra/local/dev.compose.yml down -vleft pgweb and Jaeger running, with no error and no obvious diagnostic — they kept eating memory until the next reboot. Reason: Compose only operates on services whose profile is currently active. Bringing them up with--profile dbtools/--profile observabilityrequires the same flag(s) ondown, otherwise they're invisible to that command.Document the gotcha in
infra/README.md"Local-dev stack" → "Operational tips", with the two pragmatic resolutions:COMPOSE_PROFILES=dbtools,observabilityonce in the shell orinfra/local/.env, and let it propagate to everyup/down/psinvocation.Test plan
docker compose -f infra/local/dev.compose.yml --profile dbtools --profile observability up -d.docker compose -f infra/local/dev.compose.yml down -v(no flags) — confirms pgweb + jaeger keep running.COMPOSE_PROFILESset; same outcome.