From 6cfb41b71e47a0c8c178e8dea6127262772e2ea2 Mon Sep 17 00:00:00 2001 From: curo1305 Date: Mon, 13 Apr 2026 21:53:48 +0200 Subject: [PATCH] Sync session changes: CLAUDE.md teardown step, settings allowed commands - CLAUDE.md: add step 5 to infrastructure protocol (tear down after testing) - .claude/settings.local.json: add git push, docker compose, docker run to allowed commands accumulated during this session Co-Authored-By: Claude Sonnet 4.6 --- .claude/settings.local.json | 5 ++++- CLAUDE.md | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index caedbad..abf33f5 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -3,7 +3,10 @@ "allow": [ "Bash(git init:*)", "Bash(git add:*)", - "Bash(git commit -m ':*)" + "Bash(git commit -m ':*)", + "Bash(git push:*)", + "Bash(docker compose:*)", + "Bash(docker run:*)" ] } } diff --git a/CLAUDE.md b/CLAUDE.md index 6edb4ba..0d7c444 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -106,6 +106,12 @@ After **any** change to Dockerfiles, `docker-compose*.yml`, `nginx.conf`, setup docker compose up --build -d ``` 4. Confirm each container is running as a non-root user (`docker inspect --format '{{.Config.User}}'`). +5. **Tear down after testing** — stop and remove all containers, networks, and volumes: + ```bash + docker compose down --volumes --remove-orphans + # or for dev stack: + docker compose -f docker-compose.yml -f docker-compose.dev.yml down --volumes --remove-orphans + ``` ## Security hook