If ThingsBoard Edge is going to be running on the same machine where ThingsBoard server (cloud) is running, you'll need to update docker compose port mapping to avoid port collision between ThingsBoard server and ThingsBoard Edge.
If ThingsBoard Edge is going to be running on the same machine where ThingsBoard server (cloud) is running, you'll need to update configuration parameters to avoid port collision between ThingsBoard server and ThingsBoard Edge.
Please uncomment the following parameters in the ThingsBoard Edge configuration file (**/etc/tb-edge/conf/tb-edge.conf**):
```text
export HTTP_BIND_PORT=18080
export MQTT_BIND_PORT=11883
export COAP_BIND_PORT=15683
export LWM2M_ENABLED=false
```
Please update next lines of `docker-compose.yml` file:
Or update using command:
```bash
```bash
ports:
sudo sh -c 'cat <<EOL>> /etc/tb-edge/conf/tb-edge.conf
- "18080:8080"
export HTTP_BIND_PORT=18080
- "11883:1883"
export MQTT_BIND_PORT=11883
- "15683-15688:5683-5688/udp"
export COAP_BIND_PORT=15683
export LWM2M_ENABLED=false
EOL'
```
```
Make sure that ports above (18080, 11883, 15683-15688) are not used by any other application.
{: .copy-code}
Make sure that ports above (18080, 11883, 15683-15688) are not used by any other application.
#### Run installation script
#### Run installation script
Once ThingsBoard Edge is installed and configured please execute the following install script:
Once ThingsBoard Edge is installed and configured please execute the following install script:
If ThingsBoard Edge is going to be running on the same machine where ThingsBoard server (cloud) is running, you'll need to update configuration parameters to avoid port collision between ThingsBoard server and ThingsBoard Edge.
Please uncomment the following parameters in the ThingsBoard Edge configuration file (**/etc/tb-edge/conf/tb-edge.conf**):
```text
export HTTP_BIND_PORT=18080
export MQTT_BIND_PORT=11883
export COAP_BIND_PORT=15683
export LWM2M_ENABLED=false
```
Or update using command:
```bash
```bash
sudo sh -c 'cat <<EOL>> /etc/tb-edge/conf/tb-edge.conf
sudo sh -c 'cat <<EOL>> /etc/tb-edge/conf/tb-edge.conf
@ -98,8 +145,10 @@ export MQTT_BIND_PORT=11883
export COAP_BIND_PORT=15683
export COAP_BIND_PORT=15683
export LWM2M_ENABLED=false
export LWM2M_ENABLED=false
EOL'
EOL'
{:copy-code}
```
```
{: .copy-code}
Make sure that ports above (18080, 11883, 15683-15688) are not used by any other application.