littleshop/TeleBot/docker-compose.production.yml
SysAdmin fd02836450 Add TeleBot CI/CD pipeline configuration
- Created .gitlab-ci.yml for automated builds and deployment
- Added docker-compose.production.yml for VPS deployment
- Added .env.production.example for configuration template
- Follows LittleShop deployment pattern
- Auto-deploy on main branch commits

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-27 09:53:43 +01:00

43 lines
1.1 KiB
YAML

version: '3.8'
services:
telebot:
image: localhost:5000/telebot:latest
container_name: telebot
restart: unless-stopped
environment:
- ASPNETCORE_ENVIRONMENT=Production
- Telegram__BotToken=${TELEGRAM_BOT_TOKEN}
- Telegram__AdminChatId=${TELEGRAM_ADMIN_CHAT_ID}
- Telegram__UseWebhook=false
- LittleShop__ApiUrl=${LITTLESHOP_API_URL}
- LittleShop__Username=${LITTLESHOP_USERNAME}
- LittleShop__Password=${LITTLESHOP_PASSWORD}
- Database__EncryptionKey=${DB_ENCRYPTION_KEY}
- Logging__LogLevel__Default=Information
- Logging__LogLevel__Microsoft=Warning
volumes:
- ./logs:/app/logs
- ./data:/app/data
- ./image_cache:/app/image_cache
networks:
- telebot-network
- littleshop_littleshop-network
depends_on:
- littleshop-admin
healthcheck:
test: ["CMD", "pgrep", "-f", "dotnet.*TeleBot"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
telebot-network:
driver: bridge
ipam:
config:
- subnet: 172.24.0.0/16
littleshop_littleshop-network:
external: true