Docker-compose with auto_update

I am trying to get a docker-compose file with auto_update enabled. I am new to Docker, Docker Compose and YAML in general. Here is my config

version: "3"

services:
  appsmith:
    image: index.docker.io/appsmith/appsmith-ce
    container_name: appsmith
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./stacks:/appsmith-stacks
    restart: unless-stopped
      # Uncomment the lines below to enable auto-update
      labels:
        com.centurylinklabs.watchtower.enable: "true"

    auto_update:
      image: containrrr/watchtower:latest-dev
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock
      # Update check interval in seconds.
      command: --schedule "0 0 * ? * *" --label-enable --cleanup
      restart: unless-stopped

Here is the error when I try docker-compose up -d

ERROR: yaml.parser.ParserError: while parsing a block mapping
in “./docker-compose.yml”, line 5, column 5
expected , but found ‘’
in “./docker-compose.yml”, line 14, column 7

Like I mentioned I am new to YAML and I know that indents are important but I am completely unfamiliar with docker-compose files and what needs to be where. Thanks for the help

@workinonit530 Could you check and see if the below format works?

version: "3"

services:
  appsmith:
    image: index.docker.io/appsmith/appsmith-ce
    container_name: appsmith
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./stacks:/appsmith-stacks
    labels:
      com.centurylinklabs.watchtower.enable: "true"
    restart: unless-stopped

  auto_update:
    image: containrrr/watchtower:latest-dev
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    # Update check interval in seconds.
    command: --schedule "0 0 * ? * *" --label-enable --cleanup
    restart: unless-stopped

That worked! Thank you for the help.