# Requiring custom lua modules

**URL:** <https://forum.heroiclabs.com/t/requiring-custom-lua-modules/145>\
**Category:** Local Setup\
**Created:** [August 15, 2019, 8:21pm UTC](https://forum.heroiclabs.com/t/requiring-custom-lua-modules/145 "2019-08-15T20:21:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mkarena](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mkarena/32/51_2.png) [@Mkarena](https://forum.heroiclabs.com/u/Mkarena)\
**Post date:** [August 15, 2019, 8:21pm UTC](https://forum.heroiclabs.com/t/requiring-custom-lua-modules/145/1 "2019-08-15T20:21:52Z")

</div>

I’m trying to require custom LUA modules but I get an error. (i have never done lua before learning Nakama)

I join an image with all the details.

Thanks

 ![error](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/1X/e021fdfbd6850f12f81671117eff30b0ff43f8be.png)

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [August 16, 2019, 9:06am UTC](https://forum.heroiclabs.com/t/requiring-custom-lua-modules/145/2 "2019-08-16T09:06:07Z")

</div>

The log output is cut off. Can you paste the full text, or link it in a gist?

---

<div class="post-metadata">

**Author:** ![Mkarena](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mkarena/32/51_2.png) [@Mkarena](https://forum.heroiclabs.com/u/Mkarena)\
**Post date:** [August 16, 2019, 11:02am UTC](https://forum.heroiclabs.com/t/requiring-custom-lua-modules/145/3 "2019-08-16T11:02:16Z")

</div>

Hi,

Here is the gist: [https://gist.github.com/Mkarena/95ada0f74ac170c5b4635f802cb2e12b](https://gist.github.com/Mkarena/95ada0f74ac170c5b4635f802cb2e12b)

Thanks

---

<div class="post-metadata">

**Author:** ![Chance6Sean](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/chance6sean/32/58_2.png) [@Chance6Sean](https://forum.heroiclabs.com/u/Chance6Sean)\
**Post date:** [August 22, 2019, 4:42pm UTC](https://forum.heroiclabs.com/t/requiring-custom-lua-modules/145/4 "2019-08-22T16:42:44Z")

</div>

```
volumes:
 - ./:/nakama/data/modules

```

It’s possible that your data is mapping to a different location in the container than where you intend it. What’s making me think that is the path repeating `nakama/data/modules/nakama/data/modules`

Based on your structure, you might try:

```
volumes:
 - ./nakama/data:/nakama/data

```

This section here might help: [https://heroiclabs.com/docs/install-docker-quickstart/#data](https://heroiclabs.com/docs/install-docker-quickstart/#data)

---

<div class="post-metadata">

**Author:** ![Mkarena](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mkarena/32/51_2.png) [@Mkarena](https://forum.heroiclabs.com/u/Mkarena)\
**Post date:** [August 25, 2019, 10:17pm UTC](https://forum.heroiclabs.com/t/requiring-custom-lua-modules/145/5 "2019-08-25T22:17:00Z")

</div>

Thanks it works 🙂
