# Specify Running Container on Backup Page from Env Vars in yml file

**URL:** <https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669>\
**Category:** Development\
**Created:** [14 juli 2020 om 05:56 UTC](https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669 "2020-07-14T05:56:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [14 juli 2020 om 08:42 UTC](https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669/5 "2020-07-14T08:42:49Z")

</div>

> [@RGJ](#):
>
> You are completely right!

Hi @RGJ,

Just one follow-up thought:

The corner case, where hard coding the container identifiers (be it container id, name or both) as yml env vars may not work, is with Docker Swarm or Kubernetes (examples); because when containers are dynamic based on load and / or fault, hard-coding env vars in yml will not work (I assume, but have not yet done it to speak with authority on the subject); but I’m willing to go with the “simple approach” for now (env vars in yml).

Anyway, I have not yet deployed Discourse with Swarm or Kuber, so my plan was to cross that bridge when I come to it later 🙂

I have given a lot of thought to this, and that is why I have decided the best route at this point in time is to go with Discourse environmental vars hard-coded into the yml file(s).

It should be a relative easy task to take these env vars, as site settings, and display them on the admin backups page per my quick little mockup:

 ![Screen Shot 2020-07-14 at 12.14.29 PM](https://global.discourse-cdn.com/meta/original/3X/2/9/2929131b621ef5e9f92341ce2714704be8d74670.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669)._
