# Multiple Nakama's docker containers sharing the same database

**URL:** <https://forum.heroiclabs.com/t/multiple-nakamas-docker-containers-sharing-the-same-database/459>\
**Category:** Game Design\
**Created:** [January 13, 2020, 12:56pm UTC](https://forum.heroiclabs.com/t/multiple-nakamas-docker-containers-sharing-the-same-database/459 "2020-01-13T12:56:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danim](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@danim](https://forum.heroiclabs.com/u/danim)\
**Post date:** [January 13, 2020, 12:56pm UTC](https://forum.heroiclabs.com/t/multiple-nakamas-docker-containers-sharing-the-same-database/459/1 "2020-01-13T12:56:01Z")

</div>

Hi there!  
I’m trying to do somekind of server “replication” which is basically building two nakama containers sharing the same database.

Is it possible to do it? I’m kinda lost with docker and I’d appreciate any help.

Thanks in advance.

---

<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:** [January 13, 2020, 1:37pm UTC](https://forum.heroiclabs.com/t/multiple-nakamas-docker-containers-sharing-the-same-database/459/2 "2020-01-13T13:37:42Z")

</div>

@danim What do you want to achieve by having multiple Nakama nodes share the same database instance? Does the database server run in a container as well?

---

<div class="post-metadata">

**Author:** ![danim](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@danim](https://forum.heroiclabs.com/u/danim)\
**Post date:** [January 13, 2020, 3:14pm UTC](https://forum.heroiclabs.com/t/multiple-nakamas-docker-containers-sharing-the-same-database/459/3 "2020-01-13T15:14:14Z")

</div>

The first thing that comes to mind is having a central server that tells the client which server it should connect (for example, European users should connect to the one located in, let’s say, in Ireland).  
Yes, the database is running in another container
