# How to install ODK Central on Synology NAS with Docker

**URL:** <https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251>\
**Category:** Support\
**Tags:** odk-central\
**Created:** [April 20, 2021, 10:10am UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251 "2021-04-20T10:10:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkonan](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dkonan/32/6009_2.png) [@dkonan](https://forum.getodk.org/u/dkonan)\
**Post date:** [April 20, 2021, 10:10am UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/1 "2021-04-20T10:10:07Z")

</div>

After read many documentations about installing ODK central on Docker and ask many questions to @mathieubossaert, i decide to install ODK central on my NAS Synology (DS218+, RAM = 10GO).

After a first attempt to install by following the instructions in the link [https://docs.getodk.org/central-install-digital-ocean/](https://docs.getodk.org/central-install-digital-ocean/) and with the support of @shadoworker5, I get errors.

I put in an attached file the installation syntax, the outputs as well as the errors.  
To better understand, I put the following legend:

- **Highlighted in green:** Syntax recommended in the guide
- **Words in red:** Errors produced in the outputs
- **Words in green:** Outputs indicating that the process went well.

Please i need assistance.

[ODKCentral\_Installing\_errors.docx](https://forum.getodk.org/uploads/short-url/b2Ve5ZGlUd0hxtikuj5zQv5JeOI.docx) (44.8 KB)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [April 20, 2021, 12:52pm UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/2 "2021-04-20T12:52:50Z")

</div>

The key error seems to be

```auto
ERROR: for mail Cannot start service mail: Bind mount failed: '/volume1/homes/dkonan/central/files/dkim/config' does not exists
ERROR: Encountered errors while bringing up the project.

```

Your dkim folder should have the following structure:

- `config` folder
- `rsa.private` folder
- `config.disabled` file

For some reason, it sounds like you don't have the config folder. Try creating it and trying another `docker-compose up -d`.

---

<div class="post-metadata">

**Author:** ![dkonan](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dkonan/32/6009_2.png) [@dkonan](https://forum.getodk.org/u/dkonan)\
**Post date:** [April 20, 2021, 4:28pm UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/3 "2021-04-20T16:28:42Z")

</div>

**Hi @yanokwa,**  
Many thinks for your response.  
After creating the folder i've an error.  
Pease see it in the screenshots below

 ![image](https://getodk.b-cdn.net/uploads/default/original/2X/2/20e46e2856e42c82c06b229f0ec9f33150268ba7.png)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [April 20, 2021, 4:51pm UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/4 "2021-04-20T16:51:39Z")

</div>

Many of these errors seem to stem from the fact that Synology isn't a standard Linux. This is a very unsupported configuration, so you'll have to take more ownership here and try to figure the issues out. In this case, try creating the `/data/transfer/` folder and go from there.

---

<div class="post-metadata">

**Author:** ![dkonan](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dkonan/32/6009_2.png) [@dkonan](https://forum.getodk.org/u/dkonan)\
**Post date:** [April 22, 2021, 11:03pm UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/5 "2021-04-22T23:03:21Z")

</div>

**Hi Team**

I apologize if I would disturb you.  
But, I would really like to be able to install it and share my experience.  
After taking into account your proposals, I put the different screenshots after the orders:

**docker-compose build**

 ![image](https://getodk.b-cdn.net/uploads/default/original/2X/2/2f3aed221572e70342ec88f4987bfc540e44479b.png)  
**=\> The process went well**

**docker-compose up --no-start**  
**&**  
**docker-compose up -d**

 ![image](https://getodk.b-cdn.net/uploads/default/original/2X/2/2abd22f6ddd60a8c4e18cbe03dd46eb2df61c25b.png)

=\> These 2 commands indicate that the process went well.  
However, I note that I do not have access to central ODK. While doing **docker-compose ps** , I notice that 2 elements (enketo\_redis\_cache and enketo\_redis\_main) only restart.  
Please see below the screenshot

 ![image](https://getodk.b-cdn.net/uploads/default/original/2X/9/9d79756f4133db2175217950ed22e85ce350909c.png)

When i do this syntax

> docker-compose logs

I see below message

 ![image](https://getodk.b-cdn.net/uploads/default/original/2X/d/d8e9f2a60a463abff715f032955602dd553e8c1a.png)  
Best regards

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [April 23, 2021, 4:24pm UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/6 "2021-04-23T16:24:10Z")

</div>

Hi @dkonan

you should type

```sh
docker-compose logs name_of_the_container
```

---

<div class="post-metadata">

**Author:** ![dkonan](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dkonan/32/6009_2.png) [@dkonan](https://forum.getodk.org/u/dkonan)\
**Post date:** [May 6, 2021, 10:04pm UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/7 "2021-05-06T22:04:44Z")

</div>

**Hi @yanokwa,**  
**Hi @mathieubossaert** ,  
**Hi @shadoworker5**

Many thanks for your guidance.  
After several attempts, failures and reading posts, I was able to install ODK Central on my Synology NAS with Docker.

The key steps to follow:

> **Creation of directories in the central folder**  
> root@xxx: / central # mkdir -p ~/central/files/dkim/config  
> root @xxx: / central # mkdir -p ~/central/files/dkim/rsa.private

> **Creation of directory in at the root**  
> root@xxx: / central # mkdir -p ~/data/transfer

> Changing ports in the docker-compose.yml file

I followed the @jary's guidelines below:

> [@ODK Central with nonstandard port number and custom SSL: Cannot retrieve forms with Collect](https://forum.getodk.org/t/odk-central-with-nonstandard-port-number-and-custom-ssl-cannot-retrieve-forms-with-collect/26264/9):
>
> ```auto
> nginx:
> container_name: nginx
> build:
> context: .
> dockerfile: nginx.dockerfile
> depends_on:
> - service
> environment:
> - SSL_TYPE=${SSL_TYPE}
> - DOMAIN=${DOMAIN}
> - CERTBOT_EMAIL=${SYSADMIN_EMAIL}
> ports:
> - "4480:80" # on the left goes the alternative port number, on right the real port 
> - "4443:443" # and the same applies for https  
> healthcheck:
> test: ["CMD-SHELL", "nc -z localhost 443 || exit 1"]
> 
> ```

Without first modifying the .env file (nano .env)

Then follow the other steps (by positioning yourself in the central directory:

> 1. docker-compose build
> 2. docker-compose up --no - start
> 3. docker-compose up -d
> 4. docker-compose ps # To make sure everything is working fine like below

 ![image](https://getodk.b-cdn.net/uploads/default/original/2X/5/5b58db7517f0f12c0cd0c3b9f9fddec0b4f0002f.png)

> 1. Create email and password

Thanks everyone.  
I will do a tutorial in French with @shadoworker5 for French speakers.  
We think it will be a good opportunity for them

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [May 6, 2021, 10:39pm UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/8 "2021-05-06T22:39:20Z")

</div>

Congrats on getting it to work, @dkonan! It's also very kind of you to also do a tutorial for others. When that is ready, please post it to this topic and I'll make sure to share it out more broadly.

Did you get a chance to test to see if the web forms (aka Enketo) are also working?

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [May 7, 2021, 7:42am UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/9 "2021-05-07T07:42:13Z")

</div>

Bravo @dkonan pour la persévérance et pour le partage à venir 🙂

---

<div class="post-metadata">

**Author:** ![dkonan](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/dkonan/32/6009_2.png) [@dkonan](https://forum.getodk.org/u/dkonan)\
**Post date:** [May 7, 2021, 10:52am UTC](https://forum.getodk.org/t/how-to-install-odk-central-on-synology-nas-with-docker/33251/10 "2021-05-07T10:52:46Z")

</div>

Merci **Mathieu** (@mathieubossaert) du soutien.  
Mais, je reviendrai vers vous. Car, je l'ai réussi en local. Je vais le refaire avec un nom de domaine.
