Enhance Telegram bot with database integration and API features
- Added SQLite database support with Alembic for migrations. - Implemented FastAPI for HTTP API to manage duties. - Updated configuration to include database URL and HTTP port. - Created entrypoint script for Docker to handle migrations and permissions. - Expanded command handlers to register users and display duties. - Developed a web application for calendar display of duties. - Included necessary Pydantic schemas and SQLAlchemy models for data handling. - Updated requirements.txt to include new dependencies for FastAPI and SQLAlchemy.
This commit is contained in:
@@ -5,8 +5,15 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
env_file: .env
|
||||
restart: always
|
||||
ports:
|
||||
- "${HTTP_PORT:-8080}:8080"
|
||||
volumes:
|
||||
- duty_data:/app/data
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
volumes:
|
||||
duty_data: {}
|
||||
|
||||
Reference in New Issue
Block a user