Help With Simple Compose

Reposting thanks to u/SP3NGL3R suggestion to add code block. I think I did it right.

Hello Everyone,

I am a complete beginner to Docker and wanted to create a system to send a command once a night that would clear a collection on Trakt. I copied my compose file below but I have been getting the error message: services.plextraktsync-clear-collections.networks.0 must be a string

Thank you for any help.

version: '4'
services:
  plextraktsync-clear-collections:
    image: alpine:latest
    command: sh -c "docker exec -it plextraktsync plextraktsync clear-collections --confirm"
    restart: always
    depends_on:
      - plextraktsync
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - name: plextraktsync_network