Skip to content

Self-improving AI Employees for everyone

fix docker prod

trohitg0517d004e3dc
diff --git a/README.md b/README.md
index fc670ff2..1c44291f 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,8 @@ Visual workflow automation platform. Build workflows by connecting nodes - like
```bash
git clone https://github.com/trohitg/MachinaOS.git
cd MachinaOs
-npm run docker:build && npm run docker:up
+npm run docker:build
+npm run docker:up
```
Open http://localhost:3000
@@ -32,12 +33,20 @@ npm run start
## Docker Commands
+### Development (hot reload, larger images)
| Command | Description |
|---------|-------------|
-| `npm run docker:up` | Start containers |
+| `npm run docker:build` | Build dev images |
+| `npm run docker:up` | Start dev containers |
| `npm run docker:down` | Stop containers |
| `npm run docker:logs` | View logs |
-| `npm run docker:build` | Rebuild images |
+
+### Production (optimized, smaller images)
+| Command | Description |
+|---------|-------------|
+| `npm run docker:prod:build` | Build prod images |
+| `npm run docker:prod:up` | Start prod containers |
+| `npm run docker:prod:logs` | View logs |
**Redis (optional):** Set `REDIS_ENABLED=true` in `.env`
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
index eca1a1b1..c17fdd86 100644
--- a/docker-compose.prod.yml
+++ b/docker-compose.prod.yml
@@ -86,7 +86,7 @@ services:
# Privileged mode for proper SQLite WAL mmap support
privileged: true
healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:9400/health"]
+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9400/health"]
interval: 30s
timeout: 10s
retries: 3