openforis / collect

Flexible tool for creating surveys of any type
http://www.openforis.org/tools/collect.html
MIT License
52 stars 146 forks source link

fixed docker intructions #167

Closed Froglich closed 3 months ago

Froglich commented 3 months ago

I found some mistakes in the the docker instructions, these changes to the README contain correct instructions for getting collect up and running using docker.

The problem was primarily that the collect container was configured to connect to the database on "localhost", but that will not work unless --network=host is also specified when the container is created. The most sane solution is to create a shared network for the database and collect containers and specifying the name of the database container as the hostname in the environment variables as I have done in this pull request.