# Automating redundancy setup for Docker containers

**URL:** <https://forum.inductiveautomation.com/t/automating-redundancy-setup-for-docker-containers/81892>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 14, 2023, 8:31pm UTC](https://forum.inductiveautomation.com/t/automating-redundancy-setup-for-docker-containers/81892 "2023-11-14T20:31:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhou\_Zeng](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@Zhou\_Zeng](https://forum.inductiveautomation.com/u/Zhou_Zeng)\
**Post date:** [November 14, 2023, 8:31pm UTC](https://forum.inductiveautomation.com/t/automating-redundancy-setup-for-docker-containers/81892/1 "2023-11-14T20:31:43Z")

</div>

I have been toying with the Ignition docker containers and haven't been able to find a way to configure an instance to run in redundant mode using environmental variables. I think automating redundancy setup will be useful in production where high availability is required and Ignition does not work with an active-active setup (as far as I know).

Does anyone know any existing solution or workaround?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 15, 2023, 6:33am UTC](https://forum.inductiveautomation.com/t/automating-redundancy-setup-for-docker-containers/81892/2 "2023-11-15T06:33:25Z")

</div>

> [@Zhou\_Zeng](#):
>
> the Ignition container

I'm not sure what you mean by this.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [November 15, 2023, 8:18am UTC](https://forum.inductiveautomation.com/t/automating-redundancy-setup-for-docker-containers/81892/3 "2023-11-15T08:18:28Z")

</div>

> [@justinedwards.jle](#):
>
> I'm not sure what you mean by this.

I expect they mean docker.  
What I think they're looking for is a way to automatically configure redundancy on 2 docker containers containing ignition gateways. Like, an environment variable that you could set on the main gateway's container to configure the IP of the backup gateway, and the other way around.

I don't think there's something like this on the official's image, maybe @kcollins's image has what you're looking for ? You can find it here:  
[https://hub.docker.com/r/kcollins/ignition/](https://hub.docker.com/r/kcollins/ignition/)

> **[GitHub - thirdgen88/ignition-docker: Ignition Docker Community Image](https://github.com/thirdgen88/ignition-docker)**
>
> Ignition Docker Community Image. Contribute to thirdgen88/ignition-docker development by creating an account on GitHub.

If it doesn't, I suppose you could make your own dockerfile.

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [November 15, 2023, 1:03pm UTC](https://forum.inductiveautomation.com/t/automating-redundancy-setup-for-docker-containers/81892/4 "2023-11-15T13:03:25Z")

</div>

Take a look through these examples (which use the official image, btw)--you can integrate the `data/redundancy.xml` to bootstrap redundancy configuration on startup. The "Standard" example here has a redundant gateway that you can enable via a Compose profile:

> **[GitHub - thirdgen88/ignition-examples: Ignition Examples with Docker Compose](https://github.com/thirdgen88/ignition-examples)**
>
> Ignition Examples with Docker Compose. Contribute to thirdgen88/ignition-examples development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Zhou\_Zeng](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@Zhou\_Zeng](https://forum.inductiveautomation.com/u/Zhou_Zeng)\
**Post date:** [November 15, 2023, 1:03pm UTC](https://forum.inductiveautomation.com/t/automating-redundancy-setup-for-docker-containers/81892/5 "2023-11-15T13:03:33Z")

</div>

yes, you summarized the intention perfectly. just realized what I originally posted is confusing.

I didn't find redundancy configurable in the unofficial image either. I make a feature request then. If I have to DIY the solution, do you know any bash script that will configure redundancy? That way I can run it after the container is brought up.

---

<div class="post-metadata">

**Author:** ![Zhou\_Zeng](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@Zhou\_Zeng](https://forum.inductiveautomation.com/u/Zhou_Zeng)\
**Post date:** [November 15, 2023, 1:04pm UTC](https://forum.inductiveautomation.com/t/automating-redundancy-setup-for-docker-containers/81892/6 "2023-11-15T13:04:37Z")

</div>

thanks for the reply, I will look into the example.
