# Docker Swarm Secrets (+Portainer)

**URL:** https://discourse.nodered.org/t/docker-swarm-secrets-portainer/31043
**Category:** General
**Created:** [2 August 2020 09:01 UTC](https://discourse.nodered.org/t/docker-swarm-secrets-portainer/31043 "2020-08-02T09:01:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![efratha94](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@efratha94](https://discourse.nodered.org/u/efratha94)
#### Post date: [2 August 2020 09:01 UTC](https://discourse.nodered.org/t/docker-swarm-secrets-portainer/31043/1 "2020-08-02T09:01:15Z")

</div>

Hi,  
I run my Node-Red on Docker Swarm + Portainer.  
I was wondering how can I define multiple credentials (multiple environment variables)? From what I found, I have to edit the "credentialsSecret" inside settings.js, but I have several credentials.  
Another issue that I don't know how to address is the docker swarm secrets - say I've defined some secrets in the service, how can I access them through the editor itself?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [1 October 2020 09:01 UTC](https://discourse.nodered.org/t/docker-swarm-secrets-portainer/31043/2 "2020-10-01T09:01:16Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
