docfast/docker-compose.yml
OpenClaw 9541ae1826
Some checks failed
Deploy to Production / Deploy to Server (push) Failing after 20s
Backend hardening: structured logging, timeouts, memory leak fixes, compression, XSS fix
- Add pino structured logging with request IDs (X-Request-Id header)
- Add 30s timeout to acquirePage() and renderPdf/renderUrlPdf
- Add verification cache cleanup (every 15min) and rate limit cleanup (every 60s)
- Read version from package.json in health endpoint
- Add compression middleware
- Escape currency in templates (XSS fix)
- Add static asset caching (1h maxAge)
- Remove deprecated docker-compose version field
- Replace all console.log/error with pino logger
2026-02-16 08:27:42 +00:00

33 lines
852 B
YAML

services:
docfast:
build: .
restart: unless-stopped
ports:
- "127.0.0.1:3100:3100"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- API_KEYS=${API_KEYS}
- PORT=3100
- NODE_ENV=production
- STRIPE_SECRET_KEY=${STRIPE_SECRET_KEY}
- STRIPE_WEBHOOK_SECRET=${STRIPE_WEBHOOK_SECRET}
- BASE_URL=${BASE_URL:-https://docfast.dev}
- PRO_KEYS=${PRO_KEYS}
- SMTP_HOST=host.docker.internal
- SMTP_PORT=25
- DATABASE_HOST=172.17.0.1
- DATABASE_PORT=5432
- DATABASE_NAME=docfast
- DATABASE_USER=docfast
- DATABASE_PASSWORD=${DATABASE_PASSWORD:-docfast}
- POOL_SIZE=15
- BROWSER_COUNT=1
- PAGES_PER_BROWSER=15
volumes:
- docfast-data:/app/data
mem_limit: 2560m
cpus: 1.5
volumes:
docfast-data: