# Stack tags creation

**URL:** <https://forums.suse.com/t/stack-tags-creation/11573>\
**Category:** Rancher 1.x\
**Created:** [August 23, 2018, 9:43am UTC](https://forums.suse.com/t/stack-tags-creation/11573 "2018-08-23T09:43:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgrunt91](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sgrunt91/32/4515_2.png) [@sgrunt91](https://forums.suse.com/u/sgrunt91)\
**Post date:** [August 23, 2018, 9:43am UTC](https://forums.suse.com/t/stack-tags-creation/11573/1 "2018-08-23T09:43:20Z")

</div>

Hello,

Is it possible to set stack tags in docker-compose.yml or rancher-compose.yml ?

(Rancher v1.6.18)

Thanks

---

<div class="post-metadata">

**Author:** ![sgrunt91](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sgrunt91/32/4515_2.png) [@sgrunt91](https://forums.suse.com/u/sgrunt91)\
**Post date:** [August 30, 2018, 10:16am UTC](https://forums.suse.com/t/stack-tags-creation/11573/2 "2018-08-30T10:16:54Z")

</div>

I finally found that is not possible.

But I’ve found an alternative using `curl` and the Rancher API:

> curl -u “${CATTLE\_ACCESS\_KEY}:${CATTLE\_SECRET\_KEY}”   
> -X PUT   
> -H ‘Accept: application/json’   
> -H ‘Content-Type: application/json’ \   
> -d ‘{“group”:“mytag”}’   
> ‘[http://rancher:8080/v2-beta/stacks/mystackid](http://rancher:8080/v2-beta/stacks/mystackid)’

If it can help somebody…

Byebye
