version: "3.9"

services:
  # Freqtrade CLI container (manual use only). It will not start with default `docker compose up`.
  freqtrade-cli:
    image: freqtradeorg/freqtrade:stable
    container_name: freqtrade_cli
    profiles: ["manual"]
    working_dir: /freqtrade
    volumes:
      - ../ft_userdata:/freqtrade/user_data
    # Keep stopped by default; run on-demand with:
    # docker compose --profile manual run --rm freqtrade-cli backtesting --help
