Command not replacing CMD

I’m trying to use the “command” command in docker-compose to replace the “CMD” command in my docker file but “CMD” is not getting replaced. Reading the docs https://docs.docker.com/compose/compose-file/compose-file-v2/#command I assume this is what “command” is for but it’s just not doing anything for me.

Dockerfile:
FROM node:11

RUN mkdir -p /code
WORKDIR /code

COPY package.json /code/
COPY yarn.lock /code/
RUN yarn install

COPY webpack.config.js /code/
COPY tsconfig.json /code/

COPY ./src /code/src

EXPOSE 3001
CMD [ “./node_modules/.bin/nodemon”, “–watch”, “./src”, “–exec”, “yarn”, “start:dev” ]

docker-compose.yml
version: ‘2’
services:
game_hud:
build: ./
ports:
- ‘3001:3000’
volumes:
- ./src:/code/src
command: yarn start

After running docker-compose up --build it’s still starting with CMD [ “./node_modules/.bin/nodemon”, “–watch”, “./src”, “–exec”, “yarn”, “start:dev” ]

I’m using docker for mac v 2.1.0.2. Any idea what I’m doing wrong?