docs(devops): update all documentation for DockerSpec compliance
- Replace all docker-compose.yml/docker-compose.monitoring.yml references with compose.yaml/compose.monitoring.yaml (modern Compose Spec naming) - Replace all `docker-compose` CLI commands with `docker compose` (plugin syntax) - Update Dockerfile stage descriptions: node:18-alpine → node:20.11-bookworm-slim, built-in node user → explicit nodeapp:1001 non-root user - Update image version references: postgres:14-alpine → postgres:14.12-alpine3.19, redis:7-alpine → redis:7.2-alpine3.19 - Externalize postgres credentials: hardcoded values → POSTGRES_USER/PASSWORD/DB env vars - Externalize Grafana admin password: hardcoded 'agentidp' → GF_ADMIN_PASSWORD env var - Add Docker Compose Variables section to environment-variables.md (POSTGRES_*, GF_ADMIN_PASSWORD) - Update local-development.md Step 3: cp .env.example .env, document POSTGRES_* purpose - Update quick-start.md: cp .env.example .env, use awk/sed for JWT key injection - Update 07-dev-setup.md: remove 'no .env.example' claim, reference cp .env.example - Update docker-compose.yml key file description in 04-codebase-structure.md - Update monitoring overlay launch commands across all docs (compose.yaml + compose.monitoring.yaml) - Update volume names to kebab-case: postgres_data → postgres-data, redis_data → redis-data - Fix compliance encryption-runbook: docker-compose restart agentidp → docker compose restart app All docs now consistent with compose.yaml in repo root. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,7 @@ Three key patterns are used in Redis. Useful for debugging and manual inspection
|
||||
|
||||
```bash
|
||||
# Connect to Redis CLI
|
||||
docker-compose exec redis redis-cli
|
||||
docker compose exec redis redis-cli
|
||||
```
|
||||
|
||||
| Key pattern | Example | Purpose | TTL |
|
||||
@@ -192,10 +192,10 @@ Error: connect ECONNREFUSED 127.0.0.1:5432
|
||||
|
||||
| Cause | Fix |
|
||||
|-------|-----|
|
||||
| PostgreSQL container not started | Run `docker-compose up -d postgres` |
|
||||
| PostgreSQL container not yet healthy | Wait and run `docker-compose ps` — wait for `healthy` |
|
||||
| PostgreSQL container not started | Run `docker compose up -d postgres` |
|
||||
| PostgreSQL container not yet healthy | Wait and run `docker compose ps` — wait for `healthy` |
|
||||
| Wrong `DATABASE_URL` host/port | Check `DATABASE_URL` matches the PostgreSQL port (5432) |
|
||||
| PostgreSQL container exited | Run `docker-compose logs postgres` to see why it exited |
|
||||
| PostgreSQL container exited | Run `docker compose logs postgres` to see why it exited |
|
||||
|
||||
---
|
||||
|
||||
@@ -210,8 +210,8 @@ Redis client error Error: connect ECONNREFUSED 127.0.0.1:6379
|
||||
|
||||
| Cause | Fix |
|
||||
|-------|-----|
|
||||
| Redis container not started | Run `docker-compose up -d redis` |
|
||||
| Redis container not yet healthy | Run `docker-compose ps` — wait for `healthy` |
|
||||
| Redis container not started | Run `docker compose up -d redis` |
|
||||
| Redis container not yet healthy | Run `docker compose ps` — wait for `healthy` |
|
||||
| Wrong `REDIS_URL` | Check `REDIS_URL` matches the Redis port (6379) |
|
||||
|
||||
---
|
||||
@@ -257,7 +257,7 @@ If a migration is listed there but the table is inconsistent, manually inspect a
|
||||
# Find the current window key
|
||||
WINDOW=$(node -e "console.log(Math.floor(Date.now() / 60000))")
|
||||
# Check count for a specific client
|
||||
docker-compose exec redis redis-cli GET "rate:<client_id>:$WINDOW"
|
||||
docker compose exec redis redis-cli GET "rate:<client_id>:$WINDOW"
|
||||
```
|
||||
|
||||
**Fix:** Wait until `X-RateLimit-Reset` (Unix timestamp in the response header) before retrying. The window resets every 60 seconds.
|
||||
@@ -296,10 +296,10 @@ AgentIdP exposes a Prometheus metrics endpoint at `GET /metrics` (unauthenticate
|
||||
|
||||
```bash
|
||||
# Start the full stack with monitoring
|
||||
docker compose -f docker-compose.yml -f docker-compose.monitoring.yml up -d
|
||||
docker compose -f compose.yaml -f compose.monitoring.yaml up -d
|
||||
|
||||
# Prometheus: http://localhost:9090
|
||||
# Grafana: http://localhost:3001 (admin / agentidp)
|
||||
# Grafana: http://localhost:3001 (admin / <GF_ADMIN_PASSWORD from .env>)
|
||||
```
|
||||
|
||||
The Grafana dashboard auto-provisions on first start. Navigate to **Dashboards → AgentIdP → SentryAgent.ai — AgentIdP**.
|
||||
|
||||
Reference in New Issue
Block a user