> For the complete documentation index, see [llms.txt](https://camelgemonion.gitbook.io/docker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://camelgemonion.gitbook.io/docker/dockercompose.yaml-wen-jian-zhong-chang-yong-zhi-ling/untitled-12/untitled-5/example-gmsa-configuration.md).

# EXAMPLE GMSA CONFIGURATION

当配置一个gMSA的凭证配置时，只需要通过config来指定一个凭证配置。见下面示例：

```
 version: "3.8"
 services:
   myservice:
     image: myimage:latest
     credential_spec:
       config: my_credential_spec
 ​
 configs:
   my_credentials_spec:
     file: ./my-credential-spec.json|
```
