8 Commits

Author SHA1 Message Date
ea11288642 fix: add Docker Compose V2 support for all management scripts
Add docker-compose-helper.sh to auto-detect and use:
- docker-compose (V1 - standalone)
- docker compose (V2 - plugin)

Update all 9 management scripts to use the helper:
- start.sh, stop.sh, restart.sh
- logs.sh, status.sh
- backup.sh, restore.sh, update.sh, cleanup.sh

This fixes "docker-compose: command not found" error on systems
with Docker Compose V2 installed.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 17:47:49 +08:00
9ea9eb4b61 feat: add comprehensive management scripts for CodiMD
Add 9 management scripts to simplify CodiMD operations:
- start.sh: Start services with automatic .env setup
- stop.sh: Stop all services gracefully
- restart.sh: Restart all services
- logs.sh: View real-time logs for any service
- status.sh: Check service status and resource usage
- backup.sh: Backup database, uploads, and environment
- restore.sh: Restore from backups with interactive selection
- update.sh: Update Docker images with automatic backup
- cleanup.sh: Clean unused Docker resources

Add SCRIPTS.md with comprehensive usage documentation and examples.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 17:41:10 +08:00
cbe76b1f96 docs: add troubleshooting guide and update environment examples
- Add TROUBLESHOOTING.md with comprehensive issue resolution guide
- Update .env.example with additional configuration options
- Include solutions for Mixed Content, CSP, and database issues
- Add network, performance, and upgrade troubleshooting sections

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 15:40:42 +08:00
6126f74fb8 docs: add Nginx reverse proxy configuration with SSL guide
- Add nginx-example.conf with complete SSL configuration
- Add SSL-SETUP.md with step-by-step setup guide
- Include Let's Encrypt certbot instructions
- Add WebSocket support for real-time collaboration
- Include security headers and best practices
- Add troubleshooting section

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 15:22:54 +08:00
8af2f6f3b9 feat: bind CodiMD to all network interfaces (0.0.0.0)
Change port binding from 127.0.0.1 to 0.0.0.0 to allow external access.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 15:15:43 +08:00
05f853d270 fix: resolve CodiMD startup warnings
- Fix health check endpoint from /healthz to / (root path)
- Add CMD_DOMAIN environment variable to resolve domain warning
- Add CMD_URL_ADDPORT and CMD_PROTOCOL_USESSL configuration
- Update .env.example with domain configuration examples

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 15:12:04 +08:00
9b73c810e6 docs: add comprehensive documentation
- Add QUICKSTART.md for 5-minute setup guide
- Add SUMMARY.md as project overview
- Update README.md with full deployment guide
- Update .env.example with better descriptions

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 15:06:08 +08:00
bbe6f339c7 Initial commit: CodiMD Docker deployment with security hardening
- Add docker-compose.yml with PostgreSQL and CodiMD services
- Add .env.example for environment configuration template
- Add .gitignore to exclude sensitive data and persisted volumes
- Add CLAUDE.md documentation for deployment guidance
- Security hardening: read-only containers, health checks, network isolation

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 15:00:48 +08:00