bnw / firefly-iii-fints-importer

Import financial transactions from you FinTS enabled bank into Firefly III.
GNU Affero General Public License v3.0
155 stars 23 forks source link

Docker: locally hosted Firefly requires network_mode=host if not in the same network #134

Closed verymilan closed 4 months ago

verymilan commented 4 months ago

Hi there, sorry for using the issue section for this, but I am not sure if network_mode might have unwanted implications, so I did not do a pr. However future readers might find this one helpful. I have migrated my firefly to a raspi in my local network. I was unable to access it using this importer as of that moment, because the containers are not in the same network and of course local addresses of the host os cannot be accessed: Uncaught GrumpyDictator\FFIIIApiSupport\Exceptions\ApiHttpException: cURL error 6: Could not resolve host

As a quick workaround I have added network_mode=host and things are working again.

If you ran into the same problem, perhaps also consider to just join the firefly containers network and access it from there - or add tailscale to the docker setup.