**Fixes Applied:** 1. **Order Deletion Authorization (HTTP 401)** - Added [AllowAnonymous] to CancelOrder endpoint - Allows customers to cancel orders using IdentityReference - File: LittleShop/Controllers/OrdersController.cs:160 2. **Bot Activity Tracking Hostname** - Changed littleshop-admin:8080 → littleshop:5000 - Fixed DNS resolution errors in production - Files: TeleBot/appsettings.json, BotActivityTracker.cs, docker-compose.hostinger.yml 3. **Tor Proxy Investigation** - Analyzed SOCKS connection failures - Tor is working correctly, API blocks exit nodes (expected) - Fallback to default currencies working as designed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
telebot:
|
|
build:
|
|
context: ../
|
|
dockerfile: TeleBot/TeleBot/Dockerfile
|
|
image: telebot:latest
|
|
container_name: telebot
|
|
restart: unless-stopped
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Production
|
|
- TelegramBot__BotToken=${BOT_TOKEN}
|
|
- TelegramBot__WebhookUrl=${WEBHOOK_URL}
|
|
- TelegramBot__UseWebhook=false
|
|
- LittleShopApi__BaseUrl=http://littleshop:5000
|
|
- LittleShopApi__ApiKey=${LITTLESHOP_API_KEY}
|
|
- Logging__LogLevel__Default=Information
|
|
- Logging__LogLevel__Microsoft=Warning
|
|
- Logging__LogLevel__Microsoft.Hosting.Lifetime=Information
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
- ./data:/app/data
|
|
- ./image_cache:/app/image_cache
|
|
networks:
|
|
- littleshop-network
|
|
depends_on:
|
|
- littleshop
|
|
healthcheck:
|
|
test: ["CMD", "pgrep", "-f", "dotnet.*TeleBot"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
|
|
littleshop:
|
|
external: true
|
|
name: littleshop
|
|
|
|
networks:
|
|
littleshop-network:
|
|
external: true
|
|
name: littleshop-network |