readingtracker/docker-compose.yml
Greg 2f3282dcc3 Complete full-stack security implementation
- 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>
2025-08-18 00:08:36 +02:00

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