Docker driver not logging to Loki

Hello all,
I am running loki behind Traefik. The URL is https://loki.domain.tld and it shows as ready (https://loki.domain.tld/ready) so I know that bit works.

I installed the Docker logging driver and it is enabled.

Here is the logging config in my docker-compose.yml file for the service:

x-logging:
  &loki
  logging:
    driver: loki
    options:
      loki-url: "https://loki.domain.tld/loki/api/v1/push"
      loki-batch-size: "400"
      loki-retries: "5"

and the service itself has
<< : *loki

However, I start the service and I can see logs when I run docker logs container but nothing is getting logged to loki.