🚀 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:
57
stack.env.example
Normal file
57
stack.env.example
Normal file
@ -0,0 +1,57 @@
|
||||
# Пример файла переменных окружения для деплоя
|
||||
# Скопируйте этот файл в stack.env и заполните реальными значениями
|
||||
|
||||
# =================================
|
||||
# ОСНОВНЫЕ НАСТРОЙКИ ПРИЛОЖЕНИЯ
|
||||
# =================================
|
||||
|
||||
# Среда выполнения (development, production)
|
||||
NODE_ENV=production
|
||||
|
||||
# Порт для приложения
|
||||
PORT=3000
|
||||
|
||||
# Часовой пояс
|
||||
TZ=Europe/Moscow
|
||||
|
||||
# =================================
|
||||
# БАЗА ДАННЫХ (ОБЯЗАТЕЛЬНО)
|
||||
# =================================
|
||||
|
||||
# URL подключения к PostgreSQL базе данных
|
||||
# Формат: postgresql://username:password@host:port/database
|
||||
DATABASE_URL=postgresql://your_username:your_password@your_host:5432/your_database
|
||||
|
||||
# Максимальное количество подключений к БД
|
||||
MAX_CONNECTIONS=10
|
||||
|
||||
# =================================
|
||||
# TELEGRAM BOT (ОБЯЗАТЕЛЬНО)
|
||||
# =================================
|
||||
|
||||
# Токен Telegram бота (получить у @BotFather)
|
||||
TELEGRAM_BOT_TOKEN=your_bot_token_here
|
||||
|
||||
# =================================
|
||||
# ДОПОЛНИТЕЛЬНЫЕ НАСТРОЙКИ
|
||||
# =================================
|
||||
|
||||
# Уровень логирования (error, warn, info, debug)
|
||||
LOG_LEVEL=info
|
||||
|
||||
# =================================
|
||||
# ИНСТРУКЦИИ ПО ЗАПОЛНЕНИЮ
|
||||
# =================================
|
||||
|
||||
# 1. DATABASE_URL:
|
||||
# - Замените your_username, your_password, your_host, your_database
|
||||
# - Пример: postgresql://myuser:mypass@db.example.com:5432/mydb
|
||||
# - Для облачных БД часто требуется SSL, это настроено автоматически
|
||||
|
||||
# 2. TELEGRAM_BOT_TOKEN:
|
||||
# - Создайте бота через @BotFather в Telegram
|
||||
# - Скопируйте полученный токен
|
||||
# - Пример: 1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
|
||||
|
||||
# 3. После заполнения переименуйте файл в stack.env:
|
||||
# mv stack.env.example stack.env
|
Reference in New Issue
Block a user