I am having this exact same issue. Is something missing in the documentation here:
Step 1. Install Docker
Step 4: `$ docker run -p 6060:6060 -d --name tinode-srv --network tinode-net tinode/tinode-postgres:latest` (again, for Postgres)
The Docs make it seem like it should be that simple. But what happens is the tinode-srv container runs for a few seconds and then dies. Checking the logs for that container:
```
2024/11/19 15:21:27 Database adapter: 'postgres'; version: 113
2024/11/19 15:21:27 Failed to init DB adapter: failed to connect to `host=localhost user=postgres database=tinode`: dial error (dial tcp [::1]:5432: connect: connection refused)
```
The postgres container is running on port: 5432:
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2507188f0740 postgres:13 "docker-entrypoint.s…" 7 minutes ago Up 7 minutes 5432/tcp postgres
```
I also tried creating a docker-compose.yml file and dumping the postgres and tinode-srv services in there. I get the exact same issue/behavior.
Based on the official Docs linked above, these are two separate containers, using the same docker network. I'm not understanding why they are not seeing each other.
For Step 3, I changed the default password of "postgres" to my own passphrase. Is that the problem? Is the tinode-srv container actually expecting to connect to postgres with that default password?