In case you changed default PostgreSQL datasource settings please update the configuration file with your actual values (**/etc/tb-edge/conf/tb-edge.conf**).
Edit ThingsBoard Edge configuration file:
```bash
sudo nano /etc/tb-edge/conf/tb-edge.conf
{:copy-code}
```
{: .copy-code}
Please update the following lines in your configuration file. Make sure to replace:
Please update the following lines in your configuration file. Make sure **to replace**:
- PUT_YOUR_POSTGRESQL_PASSWORD_HERE with your actual postgres datasource username
- PUT_YOUR_POSTGRESQL_PASSWORD_HERE with your actual postgres datasource password.
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:
Please execute the following command to update ThingsBoard Edge configuration file (**/etc/tb-edge/conf/tb-edge.conf**):
```bash
sudo sh -c 'cat <<EOL>> /etc/tb-edge/conf/tb-edge.conf
@ -213,22 +201,24 @@ export MQTT_BIND_PORT=11883
export COAP_BIND_PORT=15683
export LWM2M_ENABLED=false
EOL'
{:copy-code}
```
{: .copy-code}
Make sure that ports above (18080, 11883, 15683-15688) are not used by any other application.
#### Run installation 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 docker compose port mapping to avoid port collision between ThingsBoard server and ThingsBoard Edge.
Please update next lines of `docker-compose.yml` file:
In case you changed default PostgreSQL datasource settings please update the configuration file with your actual values (**/etc/tb-edge/conf/tb-edge.conf**).
Edit ThingsBoard Edge configuration file:
```bash
sudo nano /etc/tb-edge/conf/tb-edge.conf
{:copy-code}
```
{: .copy-code}
Please update the following lines in your configuration file. Make sure to replace:
Please update the following lines in your configuration file. Make sure **to replace**:
- PUT_YOUR_POSTGRESQL_PASSWORD_HERE with your actual postgres datasource username
- PUT_YOUR_POSTGRESQL_PASSWORD_HERE with your actual postgres datasource password.
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:
Please execute the following command to update ThingsBoard Edge configuration file (**/etc/tb-edge/conf/tb-edge.conf**):
```bash
sudo sh -c 'cat <<EOL>> /etc/tb-edge/conf/tb-edge.conf
@ -145,8 +133,8 @@ export MQTT_BIND_PORT=11883
export COAP_BIND_PORT=15683
export LWM2M_ENABLED=false
EOL'
{:copy-code}
```
{: .copy-code}
Make sure that ports above (18080, 11883, 15683-15688) are not used by any other application.
@ -156,12 +144,14 @@ Once ThingsBoard Edge is installed and configured please execute the following i