I have a dockerized rails 4.2 app. I also installed a firebird 3 on my local Ubuntu machine. Now, when I start my docker container and want to start developing I always get this error:
ActiveRecord::ConnectionNotEstablished
No Firebird connections established.
This is my docker run command:
docker run --rm -itP --name dev-cont --network host -v $(pwd):/data -e NO_RAKE_TASK=1 image_name
This is my database.yml
development:
adapter: fb
database: /var/lib/firebird/3.0/data/FELIX.FDB
username: sysdba
password: x
host: localhost
encoding: UTF-8
charset: UTF-8
# create: true
I can connect to the database with my DB Admin tool (DBeaver), where the configuration looks exactly the same.
To see if the port is available in the container I installed nmap and checked if the port is open, which seems to be.
What am I missing here?