How do you specify resource constrains in compose file 3.2?

Previously it was possible to do specify resource contstraints in Services itself but in 3.2 they are moved to deploy. So how exactly you use compose file if you don’t run in swarm mode with compose file?