Docker stack deploy no basic auth credentials

i’m able to create a service from the cmd line. just wondering how you do it using the docker compose yaml file.
how do you parse the token in yaml file?