Docker compose with init container to populate initial dataset failing

Hi Team, I am new to cockroachDB and trying to deploy the same on my windows 10 machine with below docker compose file. The DB and UI container are successfully getting created but the init container is failing with the error.

Error:
dial tcp 127.0.0.1:26257: connect: connection refused
Failed running “sql”
Error: cannot dial server.
Is the server running?
If the server is running, check --host client-side and --advertise server-side.

Docker Compose
version: ‘3’
services:
roach-ui:
image: cockroachdb/cockroach
command: start --insecure
expose:
- “8080”
ports:
- “8080:8080”
networks:
- roachnet
db-1:
container_name: db-1
image: cockroachdb/cockroach
command: start --insecure --listen-addr=localhost --join=roach-ui
expose:
- “26257”
ports:
- “26257:26257”
networks:
- roachnet
volumes:
- ./db:/db/cockroach/cockroach-data
db-init:
image: cockroachdb/cockroach
networks:
- roachnet
volumes:
- ./db/:/db
entrypoint: “/bin/bash”
command: /db/setup_db.sh
depends_on:
- db-1
networks:
roachnet:
volumes:
db:

Hey @dharmjit,

Are you using our official documentation for running CockroachDB in Docker?

Here Is a link.

Let me know if you are, I would be happy to investigate.

Thanks,
Matt