Commit Graph

7 Commits

Author SHA1 Message Date
BeauTroll
9ad3cbe0d7 Fix docker compose ps command usage across scripts
Replace deprecated `docker compose ps | grep` patterns with the more reliable `docker compose ps --status running --services | grep` command. This ensures consistent container status checking across backup, restore, and update scripts.

Also fix regex pattern in update.sh for French "oui" validation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-17 05:51:12 +01:00
BeauTroll
eff651e720 Enhance backup/restore/update scripts with security and best practices
- Security improvements: set -euo pipefail, secure .env loading, safe PGPASSWORD handling
- Add comprehensive logging to ./logs/ directory for all operations
- Implement SHA256 checksums for backup integrity verification
- Add lock file mechanism to prevent concurrent backups
- Improve error handling with detailed exit codes and cleanup functions
- Add safety backup of current DB before restore operations
- Backup docker-compose.yml before updates with auto-restore on failure
- Replace wget with curl for better reliability in health checks
- Use find -mindepth for safer data directory cleanup
- Add progress indicators with file sizes and operation statistics
- Validate paths and checksums before restore operations
- All operations now log to timestamped files with full traceability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-17 05:42:54 +01:00
BeauTroll
930bb88417 Refactor Makefile with improved styling and color output
Reorganized Makefile with color-coded output, better organization with section headers, and additional helper commands (env-example, quick-setup). Updated all echo commands to use -e flag for ANSI color support and improved help formatting with sorted commands.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-17 05:24:18 +01:00
BeauTroll
eaf055ccba Make registration and signin view configurable via environment variables
Changed DISABLE_REGISTRATION and REQUIRE_SIGNIN_VIEW from hardcoded values to environment variables with sensible defaults (false), allowing deployment-specific configuration without code changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-17 04:53:47 +01:00
BeauTroll
6cb3d4239e Restructure project following production-ready standards
- Add comprehensive docker-compose configuration with health checks
- Create Makefile with 16 utility commands for easy management
- Implement robust backup/restore/update scripts with error handling
- Add optimized PostgreSQL configuration for Gitea workload
- Enhance .env.example with clear dev/prod sections and documentation
- Create comprehensive README with installation, configuration, and maintenance guides
- Improve .gitignore to exclude all sensitive and generated files
- Add Redis persistence (AOF) and memory limits
- Configure service dependencies with health conditions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-16 19:12:43 +01:00
theo
7b6ba15d8f Add env file 2025-12-16 18:48:15 +01:00
theo
56748cfb08 initial commit 2025-12-16 10:37:08 +01:00