# Docker YAML variables for User Authentication, Database Connections

**URL:** <https://forum.inductiveautomation.com/t/docker-yaml-variables-for-user-authentication-database-connections/80074>\
**Category:** Ignition\
**Created:** [October 5, 2023, 1:54pm UTC](https://forum.inductiveautomation.com/t/docker-yaml-variables-for-user-authentication-database-connections/80074 "2023-10-05T13:54:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [October 5, 2023, 1:54pm UTC](https://forum.inductiveautomation.com/t/docker-yaml-variables-for-user-authentication-database-connections/80074/1 "2023-10-05T13:54:42Z")

</div>

Hello,

I reviewed the documentation online, I haven't been able to locate how we can get database connections, user authentication setup using Docker compose with the YAML.

Is this possible? Can someone point me in the right direction?

---

<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:** [October 5, 2023, 2:11pm UTC](https://forum.inductiveautomation.com/t/docker-yaml-variables-for-user-authentication-database-connections/80074/2 "2023-10-05T14:11:16Z")

</div>

> [@tmahaf](#):
>
> I haven't been able to locate how we can get database connections, user authentication setup using Docker compose with the YAML.

This level of configuration is not yet possible against a fresh gateway. If you need to integrate this type of configuration, you can supply a GWBK and direct the container to restore on fresh-launch.

That said, we're actively working to improve that potential with the next major release of Ignition.

---

<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:** [October 5, 2023, 2:12pm UTC](https://forum.inductiveautomation.com/t/docker-yaml-variables-for-user-authentication-database-connections/80074/3 "2023-10-05T14:12:59Z")

</div>

I maintain some examples on how to build derived images with some more advanced features in this repository: [GitHub - thirdgen88/ignition-derived-example: Derived Image Example using Official Ignition Docker Image as Base](https://github.com/thirdgen88/ignition-derived-example)

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [October 5, 2023, 3:31pm UTC](https://forum.inductiveautomation.com/t/docker-yaml-variables-for-user-authentication-database-connections/80074/4 "2023-10-05T15:31:11Z")

</div>

Thanks. Will the approach allow for spinning up docker images running a gateway that is a different version than the one that it is restoring on?

---

<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:** [October 5, 2023, 3:33pm UTC](https://forum.inductiveautomation.com/t/docker-yaml-variables-for-user-authentication-database-connections/80074/5 "2023-10-05T15:33:15Z")

</div>

Yes, as long as you're restoring _forward_ (where your container image version is \>= the gwbk version), you're okay.
