How to execute docker-compose which has different services(--gpus)

I have a scenario where i should run services which include gpu and non-gpu.

For individual container run i’m can use

sudo docker run --gpus all --volume=docker-train:/src/ train

For docker-compose what can i include??