istSOS / istsos2

Easily manage your sensor network and distribute your data in a standard way
Other
16 stars 30 forks source link

wrong default postgres host with docker install #61

Open mdsnor opened 4 years ago

mdsnor commented 4 years ago

Running docker-compose starts the application, however the postgres host defaults to localhost, and the connections fails. A workaround is to manually change the PostGIS Host in the Database section of the interface to the current db service name ("istsos-db" with the current compose). Or modify the config files before the install.

Wouldn't be better to have a fully working docker start? Would it be a solution to manage the configuration parameters as environmental variables, including the postgis host, also for the istsos container? Maybe adding an entrypoint with commands to edit the configuration files (default.cfg.sample) or similar. Crudini could help (https://github.com/pixelb/crudini)