# Environmental Variables for Compose

## Set Environmental Variables

`sudo nano /etc/environment`

## Common Variables for Compose

{% code title="/etc/environment" %}

```bash
PUID=1000
PGID=1000
TZ="America/New_York"
```

{% endcode %}

{% hint style="info" %}
**Get UID and GID for desired user:**

`$ id [USERNAME]`
{% endhint %}

## Example in docker-compose.yaml

{% code title="docker-compose.yaml" %}

```yaml
  headphones:
    image: linuxserver/headphones
    container_name: headphones
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
```

{% endcode %}
