# Source Control of Docker Gateway Image

**URL:** <https://forum.inductiveautomation.com/t/source-control-of-docker-gateway-image/69441>\
**Category:** Ignition\
**Tags:** docker\
**Created:** [February 3, 2023, 10:14pm UTC](https://forum.inductiveautomation.com/t/source-control-of-docker-gateway-image/69441 "2023-02-03T22:14:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin\_Quinn](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Colin\_Quinn](https://forum.inductiveautomation.com/u/Colin_Quinn)\
**Post date:** [February 3, 2023, 10:14pm UTC](https://forum.inductiveautomation.com/t/source-control-of-docker-gateway-image/69441/1 "2023-02-03T22:14:07Z")

</div>

I am currently trying to figure out a good way to handle source control of my Ignition project with the Docker image. I have it configured with a persistent volume on my host machine, but cannot get git working within it. Does anyone have a better way of doing this? Thanks.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [February 3, 2023, 10:40pm UTC](https://forum.inductiveautomation.com/t/source-control-of-docker-gateway-image/69441/2 "2023-02-03T22:40:02Z")

</div>

Here is a docker image that we use to map any project specific data into a working directory that can be version controlled. We map everything you might want to version control into a directory in the container called `/workdir`. I would recommend doing a bind mount from your host into workdir (as is referenced in the example `docker-compose` at the bottom), then version control at the same level as the `docker-compose` file.

> **[GitHub - design-group/ignition-docker: A preloaded Ignition Docker...](https://github.com/design-group/ignition-docker)**
>
> A preloaded Ignition Docker Development Environment - GitHub - design-group/ignition-docker: A preloaded Ignition Docker Development Environment
