- Add Express.js backend with REST API - Implement comprehensive security measures (helmet, rate limiting, input validation) - Add Docker volume support for persistent JSON storage - Update container security (non-root user, minimal Alpine) - Add deployment and security documentation - Configure production-ready Docker setup with Coolify compatibility 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
493 B
YAML
24 lines
493 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
reading-tracker:
|
|
build: .
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
# Mount data directory for persistent JSON storage
|
|
- reading-data:/app/data
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATA_DIR=/app/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
reading-data:
|
|
driver: local |