fcakyon/claude-codex-settings / plugins/polar-skills/skills/polar-local-environment
polar-local-environment
VerifiedThis skill should be used when setting up or managing Polar local development environment with Docker.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.3 KB |
| rules/manage-instances.md | markdown | 2.7 KB |
| rules/payment-testing.md | markdown | 6.2 KB |
| rules/service-architecture.md | markdown | 3.1 KB |
| rules/shell-and-workflows.md | markdown | 2.6 KB |
| rules/start-environment.md | markdown | 3.0 KB |
| rules/stop-environment.md | markdown | 1.6 KB |
| rules/troubleshooting.md | markdown | 6.0 KB |
| rules/view-logs.md | markdown | 1.9 KB |
rules/stop-environment.md
View on GitHub---
title: Stopping the Local Environment
category: Operations
tags: docker, stop, cleanup
---
# Stopping the Local Environment
Commands act on **this instance's app stack** by default; the shared infra
(postgres/redis/minio/tinybird) keeps running so other worktrees aren't
disrupted. Reach for the shared stack explicitly only when you mean to.
## Stop services
**Stop this instance's app stack (keeps data + shared infra):**
```bash
dev docker down
```
**Stop the app stack and the shared infra too:**
```bash
dev docker down --all
```
**Stop a specific instance:**
```bash
dev docker down -i 1
```
## Cleanup (destructive)
**Reset this instance** — removes its api/worker/web containers, build/cache
volumes, postgres database (`polar_dev_<N>`), redis DB, and S3 buckets. Shared
infra stays running so other worktrees are unaffected:
```bash
dev docker cleanup -f
```
**Wipe everything shared** — this destroys postgres data, MinIO objects,
Tinybird events, and prometheus/grafana state for **every** instance on the
machine:
```bash
dev docker cleanup --all -f
```
Use per-instance cleanup for a fresh start of this worktree; use `--all` only
when you truly want to reset the machine-wide data. `dev docker prune` still
reclaims data from worktrees you've deleted.
## Restart vs stop/start
**Restart (keeps containers, fastest):**
```bash
dev docker restart # all app services
dev docker restart api # one service
```
**Stop/start (recreates containers):**
```bash
dev docker down
dev docker up -d
```
Prefer `restart` for quick changes. Recreate when you've changed Docker config,
environment variables, or a container is wedged.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |