Freqtrade Docker Ops (ft_userdata)
Use this skill when the user asks how to start/stop/restart the bot, reload config, change strategies, or verify the UI after changes.
Assumptions
- •Working directory is
/Users/scott/Desktop/trade/ft_userdata. - •The bot is run via
docker composeand the strategy lives inuser_data/strategies/.
Choose the correct action
- •
Only strategy file changed (
user_data/strategies/*.py)- •Restart container to load new code:
bash
docker compose restart freqtrade
- •Restart container to load new code:
- •
Config or env changed (
user_data/config.json,.env.*)- •Restart container:
bash
docker compose restart freqtrade
- •Restart container:
- •
docker-compose.yml changed (strategy name, ports, env_file, volumes)
- •Recreate container:
bash
docker compose up -d --force-recreate
- •Recreate container:
- •
Stop/Start
- •Stop:
bash
docker compose stop freqtrade
- •Start:
bash
docker compose start freqtrade
- •Stop:
Verification (always do)
- •Container state:
bash
docker compose ps
- •Strategy actually loaded:
bash
docker compose logs --tail=80 | grep "Strategy:"
- •UI reachable:
- •Open
http://127.0.0.1:8080/
If logs are noisy, filter further:
bash
docker compose logs --tail=80 | grep "Using resolved strategy"
Notes
- •If
rgis unavailable, usegrep. - •If the UI shows the old strategy, use
docker compose up -d --force-recreate.