# Server Configuration

**URL:** <https://forum.heroiclabs.com/t/server-configuration/355>\
**Category:** Local Setup\
**Tags:** getting-started\
**Created:** [December 3, 2019, 5:08pm UTC](https://forum.heroiclabs.com/t/server-configuration/355 "2019-12-03T17:08:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammed](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Mohammed](https://forum.heroiclabs.com/u/Mohammed)\
**Post date:** [December 3, 2019, 5:08pm UTC](https://forum.heroiclabs.com/t/server-configuration/355/1 "2019-12-03T17:08:05Z")

</div>

Hi!

I followed **Running Nakama with docker-compose** to install nakama and cockroachdb. Now it is running but I want to change the **session.token\_expiry\_sec** time.

I tried this:  
I exported the configuration from nakama console, I got **config.yaml**. Then, I placed this file in nakama/data

Note: I bind a folder in the local machine’s filesystem to the Docker file system using this inside docker-compose.yml (((- ./nakama/data:/nakama/data # Edit this line )))

I will appreciate if someone can explain this. Nakama documentation is very good but there are some steps that should be clarified, or maybe it is just me 😕

Using macOS Catalina.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [December 4, 2019, 9:18am UTC](https://forum.heroiclabs.com/t/server-configuration/355/2 "2019-12-04T09:18:12Z")

</div>

Hi @Mohammed. Welcome 👋

There’s two ways to achieve what you want to do:

1. You can edit the start line for the server in your Docker Compose file so it includes your desired token lifetime as part of the command flags:

2. You could mount a virtual filesystem so that your YML configuration is available inside the container filesystem to be read by Nakama at startup. I think this is the approach you’ve tried so far. With our standard Docker Compose files this should work:

Hope that helps.
