I followed the installation instructions given at:
https://github.com/tinode/chat/blob/master/docker/README.md(Except the optional ones)
But, when I tried running the container, it shows following error on tinode-srv log:
2023/09/03 07:40:18 Database adapter: 'postgres'; version: 113
2023/09/03 07:40:18 Failed to init DB adapter: failed to connect to `host=localhost user=postgres database=tinode`: dial error (dial tcp [::1]:5432: connect: network is unreachable)
./init-db failed. Quitting.
2023/09/03 08:00:01 Database adapter: 'postgres'; version: 113
2023/09/03 08:00:01 Failed to init DB adapter: failed to connect to `host=localhost user=postgres database=tinode`: dial error (dial tcp [::1]:5432: connect: network is unreachable)
./init-db failed. Quitting.
What's gone wrong??
Thanks in advance :-)