File size: 719 Bytes
6601b7d 9a727ef 6601b7d | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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
|