Am I missing something running all pieces in docker compose?

This is my docker compose

services:
  loki:
    image: grafana/loki:latest
    ports:
      - "3100:3100"
    command: -config.file=/etc/loki/config.yaml
    volumes:
      - ./loki-local-config.yml:/etc/loki/config.yaml
    networks:
      - loki

  alloy:
    image: grafana/alloy:latest
    volumes:
      - ./docker.alloy:/etc/alloy/docker.alloy:ro
      - /var/run/docker.sock:/var/run/docker.sock
    command:  run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/docker.alloy
    ports:
      - 12345:12345
    networks:
      - loki

  grafana:
    image: grafana/grafana:latest
    ports:
      - "3000:3000"
    environment:
      - GF_AUTH_ADMIN_USER=admin
      - GF_AUTH_ADMIN_PASSWORD=password
    depends_on:
      - loki
    networks:
      - loki

networks:
  loki:
    driver: bridge



  #  prometheus:
  #    image: prom/prometheus:latest
  #    command:
  #      - --web.enable-remote-write-receiver
  #      - --config.file=/etc/prometheus/prometheus.yml
  #    ports:
  #      - "9090:9090"
  

I am trying to monitor other docker containers running in the same host, anything I am missing? because i can not see any logs getting into Grafana , my alloy and loki configs are basics, but I welcome any direction

I am very confused about how can a container access logs for another container . or is it recommended to run alloy on the host but the rest can ru inside a container ?

In order to see logs of other containers you need to mount whatever docker log directory into Alloy.

Thank you, I did that already (I accepted it as an answer for the future visitors) but what turned out to to be the problem was that the token was somehow invalid, I recreated a new token and somehow it worked