services: telegram-bot: build: context: . # Build context is the current directory dockerfile: Dockerfile # Ensure this matches your Dockerfile name environment: TELEGRAM_API_KEY: "8078637528:AAGHah3H3roYnrTMMZj32ZoZQ8044A7hWVI" # Replace with your actual Telegram bot token LOGS_DIR: /usr/src/app/logs # Directory for logs inside the container volumes: - C:/Users/${USERNAME}/Developer/bot/logs:/usr/src/app/logs # Map your local logs directory - C:/Users/${USERNAME}/Developer/bot/:/usr/src/app # Map your local bot directory to allow changes to bot.py restart: unless-stopped # Optional: Automatically restart the container unless it is explicitly stopped