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