# Docker compose file location

**URL:** <https://hub.mender.io/t/docker-compose-file-location/7491>\
**Category:** Update Modules\
**Tags:** docker\
**Created:** [January 28, 2025, 6:51pm UTC](https://hub.mender.io/t/docker-compose-file-location/7491 "2025-01-28T18:51:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![grevelle](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/grevelle/32/2400_2.png) [@grevelle](https://hub.mender.io/u/grevelle)\
**Post date:** [January 28, 2025, 6:51pm UTC](https://hub.mender.io/t/docker-compose-file-location/7491/1 "2025-01-28T18:51:28Z")

</div>

Very simple question that I can’t find the answer to after several hours of searching. I need a docker compose update to target devices.

On my target devices the docker-compose.yml file is located here:  
/usr/local/app/dockerApp/docker-compose.yml

**How do create an artifact that updates this docker-compose.yml and its associated images?** Despite a few hrs of trying I’m unable to determine how to do this. I must imagine this is a common scenario.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [January 28, 2025, 8:46pm UTC](https://hub.mender.io/t/docker-compose-file-location/7491/2 "2025-01-28T20:46:01Z")

</div>

Hi @grevelle,

Sounds like the Application Update Module should be a fit: [Tutorial: Docker Compose update | Mender documentation](https://docs.mender.io/artifact-creation/create-an-artifact/docker-compose)

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![grevelle](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/grevelle/32/2400_2.png) [@grevelle](https://hub.mender.io/u/grevelle)\
**Post date:** [January 29, 2025, 6:58am UTC](https://hub.mender.io/t/docker-compose-file-location/7491/3 "2025-01-29T06:58:29Z")

</div>

Thanks @TheYoctoJester. I saw that as well. That tutorial doesn’t reference the location of the docker compose file. I am going to try changing both the docker compose file and the images using the docker compose update module and see what happens.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [January 29, 2025, 9:23am UTC](https://hub.mender.io/t/docker-compose-file-location/7491/4 "2025-01-29T09:23:56Z")

</div>

Hi @grevelle,

The `docker-compose.yml` in the example is this: [Tutorial: Docker Compose update | Mender documentation](https://docs.mender.io/artifact-creation/create-an-artifact/docker-compose#create-the-mender-artifact), see the file name created in the snippet.

In short, the workflow is like this:

1. you create the `docker-compose.yml` on the dev host.
2. the Application Update Module generation script bundles it together with all required container images into a Mender Artifact
3. the Artifact gets deployed
4. the Application Update Module on the device unpacks the container images and runs the `docker-compose.yml`

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![grevelle](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/grevelle/32/2400_2.png) [@grevelle](https://hub.mender.io/u/grevelle)\
**Post date:** [January 29, 2025, 4:40pm UTC](https://hub.mender.io/t/docker-compose-file-location/7491/5 "2025-01-29T16:40:30Z")

</div>

Thanks @TheYoctoJester! If I run into any issues I will share here.
