Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/proyecto26/projectxWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/proyecto26/projectx/docker-database)<a href="https://agentmods.dev/rules/proyecto26/projectx/docker-database"><img src="https://agentmods.dev/badge/rules/proyecto26/projectx/docker-database/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/proyecto26/projectx/docker-database"><img src="https://agentmods.dev/badge/rules/proyecto26/projectx/docker-database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01871 |
| Opus 5.5 | $0.00000 | $0.00748 |
| Sonnet 5.5 | $0.00000 | $0.00374 |
| Haiku 4.5 | $0.00000 | $0.00187 |
Grade A, and why
docker-database scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"] How it starts
The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Docker Database Infrastructure
Services Overview
Database Services
db- PostgreSQL 17 with PostGIS extension (Port 5432)elasticsearch- Elasticsearch 7.17.27 for Temporal visibility (Port 9200)
PostgreSQL Configuration
Image Version (DO NOT CHANGE)
db:
image: postgis/postgis:17-3.5
Why PostGIS? Provides PostgreSQL with geospatial extensions (PostGIS, pg_trgm, etc.)
Service Definition
db:
image: postgis/postgis:17-3.5
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- projectx-network
restart: unless-stopped
Health Check
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 60
start_period: 30s
Why these settings?
interval: 5s- Check frequently during startupretries: 60- Allow up to 5 minutes for startup (60 × 5s)start_period: 30s- Grace period before health checks count as failures
Data Persistence
volumes:
postgres-data:
driver: local
services:
db:
volumes:
- postgres-data:/var/lib/postgresql/data
Data persists across container restarts.
PostgreSQL Extensions
PostGIS Image Includes
postgis- Geospatial extensionpostgis_topology- Topology supportpostgis_tiger_geocoder- US address geocodingfuzzystrmatch- Fuzzy string matchingpostgis_sfcgal- 3D geometry supportpg_trgm- Trigram matching for text search
Used by Prisma
The project uses Prisma ORM which connects to this PostgreSQL instance. Connection String Format:
postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/${POSTGRES_DB}
Elasticsearch Configuration
Image Version (DO NOT CHANGE)
elasticsearch:
image: elasticsearch:7.17.27
Why 7.17.27? Compatible with Temporal Server 1.29.2
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 243 lines · 0 tokens per session scan A f9240c7e4cab
docker-database is a cursor rule published in the GitHub repository proyecto26/projectx (83 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,871 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
postgres-docker-shared-memory
PostgreSQL in Docker — /dev/shm "No space left on device" and shmsize tuning.
adapter-features
Database-specific features must be implemented in the specialized adapter only. Base adapters (postgres, mysql, etc.) must remain database-agnostic.
planning-and-delegation
Plan every task first, parallelise independent work, and staff each task with the cheapest model that can do it well.
integration-tests
Human-readable integration test requests; helpers vs httptest; suites/ vs per-DB placement.
postgresql
PostgreSQL production rules. Safe migrations, parameterized queries, TIMESTAMPTZ, proper indexing strategy.
netlify-database-migration-from-extension
Switching to Netlify Database. Reference for the netlify-database skill.