Skip to content

fcakyon/claude-codex-settings / plugins/polar-skills/skills/polar-local-environment

polar-local-environment

Verified

This skill should be used when setting up or managing Polar local development environment with Docker.

FileKindSize
SKILL.mdskill md5.3 KB
rules/manage-instances.mdmarkdown2.7 KB
rules/payment-testing.mdmarkdown6.2 KB
rules/service-architecture.mdmarkdown3.1 KB
rules/shell-and-workflows.mdmarkdown2.6 KB
rules/start-environment.mdmarkdown3.0 KB
rules/stop-environment.mdmarkdown1.6 KB
rules/troubleshooting.mdmarkdown6.0 KB
rules/view-logs.mdmarkdown1.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.
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall