Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

chore(dev): add npm clean script for docker compose teardown

Andras Bacsai253714a23e94
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md
index 69f2dc7606..33d438b91e 100644
--- a/DEVELOPMENT.md
+++ b/DEVELOPMENT.md
@@ -173,9 +173,9 @@ If you encounter issues or break your database or something else, follow these s
1. Stop all running containers `ctrl + c`.
-2. Remove all Coolify containers:
+2. Force-remove all Coolify dev containers:
```bash
- docker rm coolify coolify-db coolify-redis coolify-realtime coolify-testing-host coolify-minio coolify-vite-1 coolify-mail
+ npm run clean
```
3. Remove Coolify volumes (it is possible that the volumes have no `coolify` prefix on your machine, in that case remove the prefix from the command):
diff --git a/package.json b/package.json
index f751f87d4f..d423b5a5c6 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,8 @@
"build": "vite build",
"typecheck": "tsc --noEmit",
"test": "vitest run",
- "test:watch": "vitest"
+ "test:watch": "vitest",
+ "clean": "docker compose -f docker-compose.yml -f docker-compose.dev.yml down --remove-orphans"
},
"devDependencies": {
"@tailwindcss/postcss": "4.1.18",