How does docker-compose specify a directory, similar to the dockerfinle WORKDIR command

  docker, question

For example, docker-compose was used in the arrangement of project services. No instructions were found in the official documents.
My temporary solution is through dockerfile.

FROM node
 ADD ./web /web
 WORKDIR /web

But I want to specify it directly through docker-compose.

But, there is no such explanation.
clipboard.png

图片描述