version: "3.8"
services:
  nvidia-stock-bot:
    image: nvidia-stock-bot
    container_name: nvidia-stock-bot
    restart: always # Le conteneur redémarrera automatiquement en cas d'échec
    env_file:
      - .env
    environment:
      - DISCORD_WEBHOOK_URL=${DS_HOOK}
      - REFRESH_TIME=${FREQ}
      - API_URL_SKU=${API_URL_SKU}
      - API_URL_STOCK=${API_URL_STOCK}
      - PYTHONUNBUFFERED=1 # Permet d'afficher les logs en temps réel
    command: python nvidia-stock-bot.py # Lance le script Python