# Container Names Admin Plugin (Sys Admin Utility)

**URL:** <https://meta.discourse.org/t/container-names-admin-plugin-sys-admin-utility/158481>\
**Category:** Plugin\
**Created:** [July 22, 2020, 9:19am UTC](https://meta.discourse.org/t/container-names-admin-plugin-sys-admin-utility/158481 "2020-07-22T09:19:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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:** [July 22, 2020, 9:19am UTC](https://meta.discourse.org/t/container-names-admin-plugin-sys-admin-utility/158481/1 "2020-07-22T09:19:25Z")

</div>

I am happy to share this Discourse admin plugin which adds the names of containers (specified in the main app yml file), to the backups tab of the admin page. This utility plugin is useful for Discourse sys admins who run multi-container configurations and wish to see, at a glance, which container is running.

> SCREENSHOT

 ![Screen Shot 2020-07-22 at 3.51.33 PM](https://global.discourse-cdn.com/meta/original/3X/f/e/fe5840f0a30cf1cc263d3f11938b1014a8b0b1f7.jpeg)

This is a simple plugin, and my first “public” one, so comments and PRs are very welcome to improve it. The container information comes from environmental vars in the `yml` file, for example:

- DISCOURSE\_CONTAINER\_MAIN
- DISCOURSE\_CONTAINER\_DATA

 ![Screen Shot 2020-07-22 at 3.56.22 PM](https://global.discourse-cdn.com/meta/original/3X/e/0/e094a3fceecd00968c913f2af7f848b644916b66.jpeg)

We run multiple containers live at the same time so we can rebuild Discourse containers and cut over to it with zero down time (changing the reverse proxy configuration), so for us, it was better to hard code this value into the `yml` file versus pulling it from `docker ps` because `docker ps` has no way of knowing which container is enabled by configuration in the reverse proxy.

> TODO

My Ember skills are poor compared to the Discourse experts (still trying to learn Ember), so I had some issues in two areas so there are at least two open TODOs, and I welcome a PR if anyone is interested:

1. When the Discourse app (GUI) is running and we switch containers (via a reverse proxy configuration change) the page must be reloaded (or plugin disabled and re-enabled). I could not get the computed property to update automatically (I tried many different techniques).

2. Could not get I18N to work as expected, so the `<span>` element is hard-coded into the JS code versus residing in the locale configuration (but draft placeholders are there).

As mentioned, PRs are welcome, as I am still a Discourse plugin noob!

[https://github.com/unixneo/container-names](https://github.com/unixneo/container-names)

> Comments and Updates Also Welcome Here:

> **[Discourse Container Names Admin Plugin](https://community.unix.com/t/discourse-container-names-admin-plugin/379320)**
>
> I am happy to share this first public Discourse admin plugin which adds the names of containers (specified in the main app yml file), to the backups tab of the admin page. This utility plugin is useful for Discourse sys admins who run...

PRs welcome!

---

_[View the full topic](https://meta.discourse.org/t/container-names-admin-plugin-sys-admin-utility/158481)._
