🚀 Initial commit: Biveki Day Bot with Docker deployment

 Features:
- 🤖 Telegram bot for task management between programmer and girlfriend
- 📝 Task creation with types (personal/shared) and priorities
-  Time-based reminders and notifications
- 📊 Statistics and progress tracking
- 🤝 Shared tasks for couples

🛠 Tech Stack:
- Backend: NestJS + TypeScript
- Database: PostgreSQL + TypeORM
- Bot: Telegraf
- Deployment: Docker + Docker Compose

🐳 Docker Deployment:
- Multi-stage Dockerfile for optimized builds
- Docker Compose with environment variables
- Health checks and automatic restarts
- Production-ready configuration

📦 Files included:
- Complete NestJS application
- Docker deployment configuration
- Environment variables setup
- Deployment scripts and documentation
- Health monitoring and logging
This commit is contained in:
Bivekich
2025-06-26 21:40:27 +03:00
commit 0ce19f8182
27 changed files with 15641 additions and 0 deletions

41
docker-compose.yml Normal file
View File

@ -0,0 +1,41 @@
version: '3.8'
services:
bivekidaybot:
build:
context: .
dockerfile: Dockerfile
target: production
container_name: bivekidaybot-app
restart: unless-stopped
ports:
- "3015:3000"
environment:
- NODE_ENV=${NODE_ENV:-production}
- PORT=${PORT:-3000}
- DATABASE_URL=${DATABASE_URL}
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TZ=${TZ:-Europe/Moscow}
env_file:
- stack.env
networks:
- bivekidaybot-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
bivekidaybot-network:
driver: bridge
volumes:
app_data:
driver: local