I run a docker-compose command like this from cron and in the log its says:
the input device is not a TTY
/usr/local/bin/docker-compose exec container_php bash -c "./myscript.php"
Works fine from command line. Needed to add -T and worked perfect.
/usr/local/bin/docker-compose exec -T labs_php bash -c "./labs/grafana/data/pull.php"