Refactor Docker and configuration files for improved structure and functionality

- Updated `.dockerignore` to include additional development and temporary files, enhancing build efficiency.
- Modified `.gitignore` to remove unnecessary entries and streamline ignored files.
- Enhanced `docker-compose.yml` with health checks, resource limits, and improved environment variable handling for better service management.
- Refactored `Dockerfile.bot` to utilize a multi-stage build for optimized image size and security.
- Improved `Makefile` with new commands for deployment, migration, and backup, along with enhanced help documentation.
- Updated `requirements.txt` to include new dependencies for environment variable management.
- Refactored metrics handling in the bot to ensure proper initialization and collection.
This commit is contained in:
2025-08-29 23:15:06 +03:00
parent f097d69dd4
commit 8f338196b7
27 changed files with 1499 additions and 370 deletions

View File

@@ -59,7 +59,6 @@ logs/*.log
*.db-wal
# Tests
tests/
test_*.py
.pytest_cache/
@@ -71,3 +70,28 @@ docs/
Dockerfile*
docker-compose*.yml
.dockerignore
# Development files
Makefile
start_docker.sh
*.sh
# Stickers and media
Stick/
# Temporary files
*.tmp
*.temp
.cache/
# Backup files
*.bak
*.backup
# Environment files
.env*
!.env.example
# Monitoring configs (will be mounted)
prometheus.yml
grafana/