# How to use use adapters from Docker container deployment?

**URL:** <https://community.parseplatform.org/t/how-to-use-use-adapters-from-docker-container-deployment/140>\
**Category:** Parse Server 📡\
**Tags:** bitnami, docker\
**Created:** [April 12, 2020, 8:43pm UTC](https://community.parseplatform.org/t/how-to-use-use-adapters-from-docker-container-deployment/140 "2020-04-12T20:43:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![splitlamp](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@splitlamp](https://community.parseplatform.org/u/splitlamp)\
**Post date:** [April 12, 2020, 8:43pm UTC](https://community.parseplatform.org/t/how-to-use-use-adapters-from-docker-container-deployment/140/1 "2020-04-12T20:43:19Z")

</div>

When deploying Parse server from a Docker container, how do you install other adapters? Or check if they are installed already?

Specifically, I am looking at the SendGrid email adapter. I am using Parse v4 with Docker Compose to deploy to a local machine (while in dev).

---

<div class="post-metadata">

**Author:** ![cbaker6](https://community.parseplatform.org/user_avatar/community.parseplatform.org/cbaker6/32/114_2.png) [@cbaker6](https://community.parseplatform.org/u/cbaker6)\
**Post date:** [April 13, 2020, 5:37pm UTC](https://community.parseplatform.org/t/how-to-use-use-adapters-from-docker-container-deployment/140/2 "2020-04-13T17:37:59Z")

</div>

You can do this by editing the package.json file to include dependencies (here I use the fs-server-adapter):

```auto
{
  "name": "parse-server",
  "version": "1.0.0",
  "description": "parse-server",
  "main": "index.js",
  "repository": {
    "type": "git",
    "url": "https://github.com/parse-server"
  },
  "license": "MIT",
  "dependencies": {
    "express": "^4.17.1",
    "parse-server": "4.1.0",
    "@parse/fs-files-adapter": "*"
  },
  "scripts": {
    "start": "node index.js"
  },
  "engines": {
    "node": ">= 8"
  }
}

```

In your docker file, the package will be installed during `npm install`.

You can then access your installed adapter in your custom `index.js`

Below is my Dockerfile:

```auto
FROM node:lts-alpine

RUN mkdir parse
ADD ./package.json ./index.js /parse/
WORKDIR /parse
RUN npm install

EXPOSE ${PORT}

CMD ["npm", "start"]

```

If you need an example of how I setup the index.js files in other with docker, I have an example here: [https://github.com/netreconlab/parse-postgres](https://github.com/netreconlab/parse-postgres)

---

<div class="post-metadata">

**Author:** ![splitlamp](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@splitlamp](https://community.parseplatform.org/u/splitlamp)\
**Post date:** [April 14, 2020, 9:14pm UTC](https://community.parseplatform.org/t/how-to-use-use-adapters-from-docker-container-deployment/140/3 "2020-04-14T21:14:12Z")

</div>

I don’t suppose you have any experience of the Bitnami configured containers? I wonder if they have changed the structure / config, or which files to edit.

In my container, there are files at:

- /opt/bitnami/nami/packages.json

- /opt/bitnami/nami/index.js

---

<div class="post-metadata">

**Author:** ![cbaker6](https://community.parseplatform.org/user_avatar/community.parseplatform.org/cbaker6/32/114_2.png) [@cbaker6](https://community.parseplatform.org/u/cbaker6)\
**Post date:** [April 14, 2020, 9:29pm UTC](https://community.parseplatform.org/t/how-to-use-use-adapters-from-docker-container-deployment/140/4 "2020-04-14T21:29:03Z")

</div>

I’ve seen some of the bitnami containers, but I don’t use them. I know they place files in custom directories like the ones you listed above. It seems if you replace those files and build you should get the end result you are looking for.

---

<div class="post-metadata">

**Author:** ![MeIr](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@MeIr](https://community.parseplatform.org/u/MeIr)\
**Post date:** [August 3, 2021, 1:26pm UTC](https://community.parseplatform.org/t/how-to-use-use-adapters-from-docker-container-deployment/140/5 "2021-08-03T13:26:10Z")

</div>

Thank you! Helped a lot.

I made a shortcut:

```auto
FROM parseplatform/parse-server

USER root

RUN npm i parse-smtp-template

USER node

```

Seems to be working ok
