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