- Add Gitea Actions workflow for manual AlexHost deployment - Add docker-compose.alexhost.yml for production deployment - Add deploy-alexhost.sh script with server-side build support - Add Bot Control feature (Start/Stop/Restart) for remote bot management - Add discovery control endpoint in TeleBot - Update TeleBot with StartPollingAsync/StopPolling/RestartPollingAsync - Fix platform architecture issues by building on target server - Update docker-compose configurations for all environments Deployment tested successfully: - TeleShop: healthy at https://teleshop.silentmary.mywire.org - TeleBot: healthy with discovery integration - SilverPay: connectivity verified 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
telebot:
|
|
build:
|
|
context: ../
|
|
dockerfile: TeleBot/TeleBot/Dockerfile
|
|
image: localhost:5000/telebot:latest
|
|
container_name: telebot
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5010:5010" # TeleBot API/health endpoint
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Production
|
|
- ASPNETCORE_URLS=http://+:5010
|
|
- TelegramBot__BotToken=${BOT_TOKEN}
|
|
- TelegramBot__WebhookUrl=${WEBHOOK_URL}
|
|
- TelegramBot__UseWebhook=false
|
|
- LittleShopApi__BaseUrl=http://teleshop:8080
|
|
- LittleShopApi__ApiKey=${LITTLESHOP_API_KEY}
|
|
- Logging__LogLevel__Default=Information
|
|
- Logging__LogLevel__Microsoft=Warning
|
|
- Logging__LogLevel__Microsoft.Hosting.Lifetime=Information
|
|
volumes:
|
|
- /opt/telebot/logs:/app/logs
|
|
- /opt/telebot/data:/app/data
|
|
- /opt/telebot/image_cache:/app/image_cache
|
|
networks:
|
|
teleshop-network:
|
|
aliases:
|
|
- telebot
|
|
silverpay-network:
|
|
aliases:
|
|
- telebot
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5010/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
teleshop-network:
|
|
name: sysadmin_teleshop-network
|
|
external: true
|
|
silverpay-network:
|
|
name: silverdotpay_silverdotpay-network
|
|
external: true |