# Parse server from hub.docker

**URL:** <https://community.parseplatform.org/t/parse-server-from-hub-docker/3008>\
**Category:** Parse Server 📡\
**Tags:** docker\
**Created:** [October 23, 2022, 10:20am UTC](https://community.parseplatform.org/t/parse-server-from-hub-docker/3008 "2022-10-23T10:20:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent41](https://community.parseplatform.org/user_avatar/community.parseplatform.org/vincent41/32/1014_2.png) [@vincent41](https://community.parseplatform.org/u/vincent41)\
**Post date:** [October 23, 2022, 10:20am UTC](https://community.parseplatform.org/t/parse-server-from-hub-docker/3008/1 "2022-10-23T10:20:44Z")

</div>

Hello guys i try to install Parse-Server on my home server ( unraid ) with docker container from [hub docker](https://hub.docker.com/r/parseplatform/parse-server#basic-options)  
Do somebody know how to inject package.json

I tried to move file to cloud/package.json and i get error: Cannot find module  
and i hav correct path to cloudCode folder because cloudColde runs.

Please help

here are my parameters  
source: parseplatform/parse-server  
name: parse-server  
Post Argumente: --appId xxx --masterKey xxxx --databaseURI mongodb://192.168.178.27:27017/test --cloud /parse-server/cloud/main.js --mountGraphQL  
-v config : /mnt/user/appdata/parse-server/config/  
-v cloud: /mnt/user/appdata/parse-server/cloud/  
-p: 1337

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [November 10, 2022, 7:48pm UTC](https://community.parseplatform.org/t/parse-server-from-hub-docker/3008/2 "2022-11-10T19:48:24Z")

</div>

Have you tried to follow this?

> **[GitHub - parse-community/parse-server: Parse Server for Node.js / Express](https://github.com/parse-community/parse-server#docker-container)**
>
> Parse Server for Node.js / Express

---

<div class="post-metadata">

**Author:** ![vincent41](https://community.parseplatform.org/user_avatar/community.parseplatform.org/vincent41/32/1014_2.png) [@vincent41](https://community.parseplatform.org/u/vincent41)\
**Post date:** [November 14, 2022, 9:34pm UTC](https://community.parseplatform.org/t/parse-server-from-hub-docker/3008/3 "2022-11-14T21:34:08Z")

</div>

Thank you for your answer @davimacedo . yes i do, but there is nothing about package.json for cloudCode.  
i run my image with following command

```auto
docker run 
--name my-parse-server 
-v mypath/config/:/parse-server/cloud  
-p 1337:1337 
--link my-mongo:mongo 
-d parse-server 
--appId APPLICATION_ID 
--masterKey MASTER_KEY 
--databaseURI mongodb://mongo/test 
--cloud /parse-server/cloud/main.js

```

in folder (-v) cloud i have 2 files

```auto
// mypath/config/main.js
Parse.Cloud.define("uuid", (request) => {
    return shortid.generate();
});

```

```auto
// mypath/config/package.json
 { 
  "dependencies": {
     "shortid": "^2.2.16"
   }
 }

```

---

<div class="post-metadata">

**Author:** ![vincent41](https://community.parseplatform.org/user_avatar/community.parseplatform.org/vincent41/32/1014_2.png) [@vincent41](https://community.parseplatform.org/u/vincent41)\
**Post date:** [November 20, 2022, 9:29am UTC](https://community.parseplatform.org/t/parse-server-from-hub-docker/3008/4 "2022-11-20T09:29:07Z")

</div>

Guys i have a solution 💪 if you want to inject node modules to your docker container

1. you have to define in your local cloud folder package,json with your modules you want to.
2. you have to run “npm install” to install your dependencies.  
3 run your docker container with -v mypath/config/:/parse-server/cloud --cloud /parse-server/cloud/main.js

Ready.

Many thanks to developers from Parse Server it is sooooo great system. I LOVE IT ❤
