heroiclabs / nakama

Distributed server for social and realtime games and apps.
https://heroiclabs.com
Apache License 2.0
8.9k stars 1.09k forks source link

Nakama DX using Docker #1208

Closed exotexot closed 4 months ago

exotexot commented 5 months ago

I find using Nakama and Docker very bad. I'm using Typescript to write Nakama Server stuff and there is no way you can update things quickly. When you edit files, you will STILL need to rebuild the entire docker container to see your updates, even though you have an exposed docker volume that is actually MEANT to share data across host and docker container.

Maybe I'm just missing something, but I feel like this is something that can be improved.

linear[bot] commented 5 months ago

NK-544 Nakama DX using Docker

zyro commented 4 months ago

What you're describing should work just fine, if you've bound a volume to your host environment that should work fine. All you would need to do is restart the Nakama container.

If you're using a Dockerfile to bundle Nakama plus your TS/JS output into a new image together, then yes you need to rebuild that each time.

exotexot commented 4 months ago

Ah, that's actually good to know! Still not ideal but restarting the container is much faster than rebuilding. Thanks for letting me know!