Can I specify health check options in the compose file?

I’d like to specify a health check command in the compose file like docker run can do. I have a few images I don’t control, and I’d rather not create my own Dockerfile based on them to add the health check.