# Balena Browser share device uuid with server

**URL:** <https://forums.balena.io/t/balena-browser-share-device-uuid-with-server/372566>\
**Category:** Project help\
**Tags:** support, docker\
**Created:** [November 30, 2024, 2:27pm UTC](https://forums.balena.io/t/balena-browser-share-device-uuid-with-server/372566 "2024-11-30T14:27:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![proculair](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/proculair/32/10116_2.png) [@proculair](https://forums.balena.io/u/proculair)\
**Post date:** [November 30, 2024, 2:27pm UTC](https://forums.balena.io/t/balena-browser-share-device-uuid-with-server/372566/1 "2024-11-30T14:27:59Z")

</div>

Hi all,

We would like to be able to share the BALENA\_DEVICE\_UUID with our server.  
We tried to achieve this by setting the user-agent with the variable in docker-compose.yml, but Balena does not substitute vars like docker-compose would normally do.

See our code here:

```auto
version: '2.4'

services:
  browser:
    image: bh.cr/balenalabs/browser-amd64
    privileged: true
    environment:
      EXTRA_FLAGS: --user-agent=FlowStation-${BALENA_DEVICE_UUID:unknown} --guest --allow-running-insecure-content
      SHOW_CURSOR: '1'
      KIOSK: '1'
      LAUNCH_URL: http://requestbin.webengage.org/redacted

```

---

<div class="post-metadata">

**Author:** ![proculair](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/proculair/32/10116_2.png) [@proculair](https://forums.balena.io/u/proculair)\
**Post date:** [December 1, 2024, 4:22pm UTC](https://forums.balena.io/t/balena-browser-share-device-uuid-with-server/372566/3 "2024-12-01T16:22:50Z")

</div>

Hi,

We have solved the problem.  
Here is our solution:

```auto
version: '2.4'

services:
  browser:
    image: bh.cr/balenalabs/browser-amd64
    privileged: true
    environment:
      SHOW_CURSOR: '1'
      KIOSK: '1'
    command:
      - bash
      - -c
      - |
        export EXTRA_FLAGS="--user-agent=FlowStation-$BALENA_DEVICE_UUID --guest --allow-running-insecure-content"
        /usr/src/app/start.sh

```
