# I have an issue with making Nakama read the config files \[Windows\]

**URL:** <https://forum.heroiclabs.com/t/i-have-an-issue-with-making-nakama-read-the-config-files-windows/2159>\
**Category:** Local Setup\
**Created:** [December 5, 2021, 8:13am UTC](https://forum.heroiclabs.com/t/i-have-an-issue-with-making-nakama-read-the-config-files-windows/2159 "2021-12-05T08:13:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prachhan](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@prachhan](https://forum.heroiclabs.com/u/prachhan)\
**Post date:** [December 5, 2021, 8:13am UTC](https://forum.heroiclabs.com/t/i-have-an-issue-with-making-nakama-read-the-config-files-windows/2159/1 "2021-12-05T08:13:03Z")

</div>

I’m new to Nakama server.  
What I have already done

1. Install Docker desktop
2. Make a new nakama folder on desktop/nakama
3. create docker-compose.yml file
4. edit the volumns section so it point to desktop/nakama/data

here’s my docker-compose.yml content

```auto
version: '3'
services:
  cockroachdb:
    image: cockroachdb/cockroach:latest-v20.2
    command: start-single-node --insecure --store=attrs=ssd,path=/var/lib/cockroach/
    restart: "no"
    volumes:
      - data:/var/lib/cockroach
    expose:
      - "8080"
      - "26257"
    ports:
      - "26257:26257"
      - "8080:8080"
  nakama:
    image: heroiclabs/nakama:3.2.1
    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
        /nakama/nakama --config /nakama/data/my-config.yml
    restart: "no"
    links:
      - "cockroachdb:db"
    depends_on:
      - cockroachdb
      - prometheus
    volumes:
      - ./data:/nakama/data
    expose:
      - "7349"
      - "7350"
      - "7351"
      - "9100"
    ports:
      - "7349:7349"
      - "7350:7350"
      - "7351:7351"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:7350/"]
      interval: 10s
      timeout: 5s
      retries: 5
  prometheus:
    image: prom/prometheus
    entrypoint: /bin/sh -c
    command: |
      'sh -s <<EOF
        cat > ./prometheus.yml <<EON
      global:
        scrape_interval: 15s
        evaluation_interval: 15s
      scrape_configs:
        - job_name: prometheus
          static_configs:
          - targets: ['localhost:9090']
        - job_name: nakama
          metrics_path: /
          static_configs:
          - targets: ['nakama:9100']
      EON
      prometheus --config.file=./prometheus.yml
      EOF'
    ports:
      - '9090:9090'
volumes:
  data:

```

1. I have made a config file (my-config.yml) and put it in the data directory

```auto
name: nakama-node-1
data_dir: "./data/"

logger:
    stdout: false
    level: "warn"
    file: "/nakama/data/logfile.log"

console:
    port: 7351
    username: "my_user"
    password: "my_password"

```

1. edit compose file entrypoint to point to the config file

```auto
/nakama/nakama --config /nakama/data/my-config.yml

```

However , my embedded console password didn’t change  
to match the settings in the config file.  
I can still login with **admin:password** which is come with the default setting  
Please point out what I could do wrong.  
Regards

---

<div class="post-metadata">

**Author:** ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)\
**Post date:** [December 5, 2021, 9:11pm UTC](https://forum.heroiclabs.com/t/i-have-an-issue-with-making-nakama-read-the-config-files-windows/2159/2 "2021-12-05T21:11:50Z")

</div>

Looks like your YAML file format is not correct - you should only have two spaces between parent and child:

```auto
console:
    port: 7351
    username: "my_user"
    password: "my_password"

```

to:

```auto
console:
  port: 7351
  username: "my_user"
  password: "my_password"

```

---

<div class="post-metadata">

**Author:** ![prachhan](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@prachhan](https://forum.heroiclabs.com/u/prachhan)\
**Post date:** [December 6, 2021, 9:15am UTC](https://forum.heroiclabs.com/t/i-have-an-issue-with-making-nakama-read-the-config-files-windows/2159/3 "2021-12-06T09:15:28Z")

</div>

It’s worked like a charm. Thank you very much.  
But now I change the port to 7351 and I can use the embeded console with that port.  
But If I change it back to 7350 it not revert back.  
I have tried docker compose up and docker compose restart  
but the port number still work at 7351

```auto
name: nakama-node-1
data_dir: "./data/"

logger:
  stdout: false
  level: "warn"
  file: "/nakama/data/logfile.log"

console:
  port: 7350
  username: "my_user"
  password: "my_password"

```

---

<div class="post-metadata">

**Author:** ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)\
**Post date:** [December 12, 2021, 9:52pm UTC](https://forum.heroiclabs.com/t/i-have-an-issue-with-making-nakama-read-the-config-files-windows/2159/4 "2021-12-12T21:52:29Z")

</div>

You cannot set the console port to 7350 without changing the socket port away from using 7350. Why are you trying to set the console port to 7350?
