# Following the Getting Started Tutorial for Docker Compose, get fatal error when using my own config file

**URL:** <https://forum.heroiclabs.com/t/following-the-getting-started-tutorial-for-docker-compose-get-fatal-error-when-using-my-own-config-file/4886>\
**Category:** Local Setup\
**Tags:** getting-started\
**Created:** [January 17, 2024, 9:37pm UTC](https://forum.heroiclabs.com/t/following-the-getting-started-tutorial-for-docker-compose-get-fatal-error-when-using-my-own-config-file/4886 "2024-01-17T21:37:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ultramarinebicycle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ultramarinebicycle/32/2018_2.png) [@ultramarinebicycle](https://forum.heroiclabs.com/u/ultramarinebicycle)\
**Post date:** [January 17, 2024, 9:37pm UTC](https://forum.heroiclabs.com/t/following-the-getting-started-tutorial-for-docker-compose-get-fatal-error-when-using-my-own-config-file/4886/1 "2024-01-17T21:37:48Z")

</div>

As the note says, I first edit the nakama:volumes line in the config file as I’m on Windows:

```auto
/c/Users/<my username>/projects/docker/data:/nakama/data

```

This creates the data directory in the above userpath. Next, I add a test-config.yml and my nakama:entrypoint entry looks like this:

```auto
entrypoint:
      - "/bin/sh"
      - "-ecx"
      - >
          /nakama/nakama migrate up --database.address root@cockroachdb:26257 &&
          /nakama/nakama --config /nakama/data/test-config.yml &&
          exec /nakama/nakama --name nakama1 --database.address root@cockroachdb:26257 --logger.level DEBUG --session.token_expiry_sec 7200 --metrics.prometheus_port 9100

```

and when I do “docker compose up”, it gives me:

```auto
{"level":"fatal","ts":"2024-01-17T21:30:06.009Z","caller":"server/db.go:86","msg":"Error pinging database","error":"failed to connect to `host=localhost user=root database=nakama`: dial error (dial tcp [::1]:26257: connect: cannot assign requested address)

```

---

<div class="post-metadata">

**Author:** ![ultramarinebicycle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ultramarinebicycle/32/2018_2.png) [@ultramarinebicycle](https://forum.heroiclabs.com/u/ultramarinebicycle)\
**Post date:** [January 18, 2024, 11:32am UTC](https://forum.heroiclabs.com/t/following-the-getting-started-tutorial-for-docker-compose-get-fatal-error-when-using-my-own-config-file/4886/2 "2024-01-18T11:32:08Z")

</div>

**SOLUTION:**

Entrypoint should be written as such:

```auto
entrypoint:
      - "/bin/sh"
      - "-ecx"
      - >
          /nakama/nakama migrate up --database.address root@cockroachdb:26257 &&
          exec /nakama/nakama --name nakama1 --database.address root@cockroachdb:26257 --logger.level DEBUG --session.token_expiry_sec 7200 --metrics.prometheus_port 9100 
          --config /nakama/data/test-config.yml

```
