[OH3] Influxdb failed to connect

Raspbian
Openhab 3.0.0:latest in Docker
Influxdb 1.8.3 in Docker with open port 8086

InfluxDB Persistence Service is not able to connect to InfluxDB.
When I have setup like this:

I see in logs:
2020-12-28 16:18:46.403 [WARN ] [rnal.influx1.InfluxDB1RepositoryImpl] - database error: java.net.ConnectException: Failed to connect to /127.0.0.1:8086 org.influxdb.InfluxDBIOException: java.net.ConnectException: Failed to connect to **/127.0.0.1:8086**

When I change it to:

I see in logs:
2020-12-28 16:26:24.638 [WARN ] [rnal.influx1.InfluxDB1RepositoryImpl] - database error: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8086 org.influxdb.InfluxDBIOException: java.net.ConnectException: Failed to connect to **localhost/127.0.0.1:8086**

User and password is correct for sure because below command works OK:
docker exec -it influxdb influx -username openhab -password MyPassword -host localhost

Does somebody else have similar problem? Is this something related to my instalation or maybe a global issue.

What is the port mapping on the Docker container?

Port mapping: 0.0.0.0:2003->2003/tcp, 0.0.0.0:8086->8086/tcp

I think I’ve found the solution. Added IP of influxDB container

For others a tip how to find it :slight_smile:
docker inspect --format '{{ .NetworkSettings.IPAddress }}' influxdb*

*change influxdb to your container_name_or_id

But I am pretty sure that it was working with http://localhost:8086 in one of the previous DEV versions of OH3.