README / docker-compose.yml
vanzuera's picture
Upload 14 files
b28ce06 verified
Raw History Blame Contribute Delete
601 Bytes
version: '3.8'
services:
fastapi-telegram-bot:
build: .
container_name: fastapi-telegram-bot
ports:
- "7860:7860"
environment:
- API_ID=${API_ID}
- API_HASH=${API_HASH}
- BOT_TOKEN=${BOT_TOKEN}
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:7860/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- ./logs:/app/logs
networks:
- bot-network
networks:
bot-network:
driver: bridge