# OnlyOffice compiled with Mobile Edit Back

**URL:** <https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282>\
**Category:** 📑 How to\
**Tags:** onlyoffice\
**Created:** [April 25, 2020, 9:51pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282 "2020-04-25T21:51:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [April 25, 2020, 9:51pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/1 "2020-04-25T21:51:33Z")

</div>

Edit 03/06/2020 : Now 5.5.3 is live.  
Today a new milestone has been past : 1K downloads of this Docker Container, you are amazing everyone !  
——————————-  
OnlyOffice Document Server with a 100 simultaneous connections and Mobile Edition !

![image](https://help.nextcloud.com/uploads/default/original/3X/e/7/e74af8c9eb1dde6bcd7a2c6ba5757973faf79fa7.jpeg)

 ![image](https://help.nextcloud.com/uploads/default/original/3X/b/a/ba381fd9d6b570ecd133581b4e93b5ff3355de0d.jpeg)

* * *

Alright i built a Docker Repository where i put my working image. Source code is at the end of this HOW TO.

So let’s start :  
`docker pull nemskiller007/officeunleashed`  
Will download my image  
Let’s run it :  
`docker run -i -t -d -p 8000:80 --restart=always nemskiller007/officeunleashed`  
Do a : `docker ps -a` in order to find your CONTAINER\_ID or CONTAINER\_NAME  
Lets modify a file for having a password protected OnlyOffice :  
`docker exec -it CONTAINER_ID /bin/bash`

`nano /out/linux_64/onlyoffice/documentserver/server/Common/config/default.json`

Go on line 155 and replace every string with secret written in it with your own password :  
`example : "browser": {"string": "ItsMyPassw0rdBro", "file": "", "tenants": {}}`,

Then on line 163 to 170 change all false by true  
example

```
        "request": {
       "inbox": true,   
    "outbox": true
                           }

```

Save and quit, and quit the container by an exit  
Shutdown the container and restart it  
`docker stop CONTAINER_ID `  
`docker start CONTAINER_ID`

Here is the nginx conf file you have to use (replace [office.MYDOMAIN.COM](http://office.MYDOMAIN.COM) by your own FQDN):

```
upstream docservice {
  server office.MYDOMAIN.COM:8000;
}

map $http_host $this_host {
    "" $host;
    default $http_host;
}

map $http_x_forwarded_proto $the_scheme {
     default $http_x_forwarded_proto;
     "" $scheme;
}

map $http_x_forwarded_host $the_host {
    default $http_x_forwarded_host;
    "" $this_host;
}

map $http_upgrade $proxy_connection {
  default upgrade;
  "" close;
}

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Forwarded-Host $the_host;
proxy_set_header X-Forwarded-Proto $the_scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

server {
  server_tokens off;
  server_name office.MYDOMAIN.COM;
  location / {
    proxy_pass http://docservice;
    proxy_http_version 1.1;
  }

  listen 0.0.0.0:80;
  listen [::]:80;
  server_name office.MYDOMAIN.com;
   
}

```

Then reload nginx and ask an ssl cert to letsencrypt.  
Install the « ONLYOFFICE » app and in the onlyoffice admin panel type [https://office.MYDOMAIN.COM](https://office.MYDOMAIN.COM) and the secret password you created.  
If you have on the same host nextcloud and the onlyoffice docker you have to modify the file /etc/hosts by adding this line  
`127.0.0.1 office.MYDOMAIN.COM`

If you want the source code : [https://github.com/warnerbryce/DocumentServer](https://github.com/warnerbryce/DocumentServer)  
If you want the files compiled without the Docker Container : [https://cloud.werry.ovh/s/yrajzsbqZroxzqx/download](https://cloud.werry.ovh/s/yrajzsbqZroxzqx/download)

I will try to keep this up to date with the next versions, but if someone wants to help me, i can share the building process (very complicated). @jospoortvliet @rakekniven

---

<div class="post-metadata">

**Author:** ![Krischan](https://help.nextcloud.com/letter_avatar/krischan/32/6_22734026db12803ebb3e059622ac3534.png) [@Krischan](https://help.nextcloud.com/u/Krischan)\
**Post date:** [April 25, 2020, 11:07pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/2 "2020-04-25T23:07:26Z")

</div>

Please make sure you document any quirks 🙂

Oh and any chance you have a ARM64 device to test compiling it there?

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [April 26, 2020, 9:15pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/3 "2020-04-26T21:15:21Z")

</div>

HOW TO added.  
Have fun

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [April 27, 2020, 12:58pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/4 "2020-04-27T12:58:02Z")

</div>

Source Code and Built code added.

---

<div class="post-metadata">

**Author:** ![mario](https://help.nextcloud.com/letter_avatar/mario/32/6_22734026db12803ebb3e059622ac3534.png) [@mario](https://help.nextcloud.com/u/mario)\
**Post date:** [April 27, 2020, 2:12pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/5 "2020-04-27T14:12:10Z")

</div>

I suggest you post a diff and open a repository. That makes it easier 🙂

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [April 27, 2020, 2:31pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/6 "2020-04-27T14:31:17Z")

</div>

you mean on GitHub ?  
I use this for building my code : [https://github.com/ONLYOFFICE/web-apps/pull/335](https://github.com/ONLYOFFICE/web-apps/pull/335)  
but i really don’t know how to make a diff.

---

<div class="post-metadata">

**Author:** ![anon75456558](https://help.nextcloud.com/letter_avatar/anon75456558/32/6_22734026db12803ebb3e059622ac3534.png) [@anon75456558](https://help.nextcloud.com/u/anon75456558)\
**Post date:** [May 4, 2020, 10:38pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/7 "2020-05-04T22:38:25Z")

</div>

Thanks, I was hopeful for a moment that OnlyOffice themselves had done this. Sigh.

> ### **[immanuelfodor](https://github.com/immanuelfodor)** replied [on Mar 19](https://github.com/ONLYOFFICE/web-apps/pull/335#commitcomment-37927614)
> 
> Yeah, but maintaining a fork with possibly growing differences later on won’t be fun

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [May 5, 2020, 1:25am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/8 "2020-05-05T01:25:21Z")

</div>

For the moment they didn’t implement breaking build if you have old web-apps files.

---

<div class="post-metadata">

**Author:** ![alfred](https://help.nextcloud.com/letter_avatar/alfred/32/6_22734026db12803ebb3e059622ac3534.png) [@alfred](https://help.nextcloud.com/u/alfred)\
**Post date:** [May 5, 2020, 8:56am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/9 "2020-05-05T08:56:14Z")

</div>

> [@Nemskiller](#):
>
> Save and quit, and quit the container by an exit  
> Shutdown the container and restart it  
> `docker stop CONTAINER_ID `  
> `docker start CONTAINER_ID`

Instead of that you could run `supervisorctl restart all` inside the container if you are already inside it in a shell.

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [May 5, 2020, 9:55am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/10 "2020-05-05T09:55:02Z")

</div>

Inside my container the command supervisorctl doesn’t exist…

---

<div class="post-metadata">

**Author:** ![kevdog](https://help.nextcloud.com/letter_avatar/kevdog/32/6_22734026db12803ebb3e059622ac3534.png) [@kevdog](https://help.nextcloud.com/u/kevdog)\
**Post date:** [May 5, 2020, 12:20pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/11 "2020-05-05T12:20:48Z")

</div>

Is there a way to automate this process at all. For example a git repository with source code that could be built with travis and then pushed to docker hub?

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [May 5, 2020, 3:01pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/12 "2020-05-05T15:01:19Z")

</div>

The GitHub Repository is ready :

> **[warnerbryce/DocumentServer](https://github.com/warnerbryce/DocumentServer)**
>
> ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and...

  
I need assistance to work with Travis and Docker Hub,  
For the moment i build with the OnlyOffice/build\_tools on a Ubuntu 14.04 then i create the Docker Container and then i upload it

---

<div class="post-metadata">

**Author:** ![kevdog](https://help.nextcloud.com/letter_avatar/kevdog/32/6_22734026db12803ebb3e059622ac3534.png) [@kevdog](https://help.nextcloud.com/u/kevdog)\
**Post date:** [May 5, 2020, 5:46pm UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/13 "2020-05-05T17:46:10Z")

</div>

Ok – so Travis will build everything upon any new github push from you. If you link Dockerhub to the github where the container ends up – it will automatically build if it has a dockerfile I believe as well.

My only problem is that I don’t know your instructions for building.

---

<div class="post-metadata">

**Author:** ![nc-kay](https://help.nextcloud.com/letter_avatar/nc-kay/32/6_22734026db12803ebb3e059622ac3534.png) [@nc-kay](https://help.nextcloud.com/u/nc-kay)\
**Post date:** [May 8, 2020, 5:33am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/14 "2020-05-08T05:33:12Z")

</div>

Hello nemskiiler,

whs you didn’t have no more information at hub.docker?

[https://hub.docker.com/r/nemskiller007/officeunleashed](https://hub.docker.com/r/nemskiller007/officeunleashed)

Such as this:

[https://hub.docker.com/\_/nextcloud](https://hub.docker.com/_/nextcloud)

I don’t feel good if i user docker container without more information.

Thank’s for your work.

nc-kay

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [May 8, 2020, 6:09am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/15 "2020-05-08T06:09:31Z")

</div>

I will do a copy paste of this HOW TO on the Docker Hub description.

---

<div class="post-metadata">

**Author:** ![nc-kay](https://help.nextcloud.com/letter_avatar/nc-kay/32/6_22734026db12803ebb3e059622ac3534.png) [@nc-kay](https://help.nextcloud.com/u/nc-kay)\
**Post date:** [May 8, 2020, 6:11am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/16 "2020-05-08T06:11:40Z")

</div>

The Dockerfile is very important to trust your Docker Container.  
Before i use a Docker Container i look at the Dockerfile.

Look at this:

[https://hub.docker.com/r/diginc/pi-hole/dockerfile](https://hub.docker.com/r/diginc/pi-hole/dockerfile)

Thank’s

nc-kay

---

<div class="post-metadata">

**Author:** ![uchagani](https://help.nextcloud.com/letter_avatar/uchagani/32/6_22734026db12803ebb3e059622ac3534.png) [@uchagani](https://help.nextcloud.com/u/uchagani)\
**Post date:** [May 15, 2020, 4:57am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/17 "2020-05-15T04:57:09Z")

</div>

I too would like to see a dockerfile

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [May 15, 2020, 8:51am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/18 "2020-05-15T08:51:47Z")

</div>

I used this for building the Docker Container with my compiled files :

> **[onlyoffice-testing-robot/onlyoffice-documentserver-run-compiled](https://github.com/onlyoffice-testing-robot/onlyoffice-documentserver-run-compiled)**
>
> Project for easy check of compiled version of DocumentServer - onlyoffice-testing-robot/onlyoffice-documentserver-run-compiled

with this command :  
`docker build --tag officeunleashed Ubuntu18.04`

---

<div class="post-metadata">

**Author:** ![skumar](https://help.nextcloud.com/letter_avatar/skumar/32/6_22734026db12803ebb3e059622ac3534.png) [@skumar](https://help.nextcloud.com/u/skumar)\
**Post date:** [May 18, 2020, 11:08am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/19 "2020-05-18T11:08:29Z")

</div>

Hi @Nemskiller,

We are using the OnlyOffice docker in our nextcloud application. But we can’t edit the documents or excel sheets in mobile app or mobile browser. The keyboard is not available while editing in mobile. What may be the issue and please help me to to resolve it. I am attaching the screenshots of documents in the mobile.

 ![Screenshot_20200518-161338](https://help.nextcloud.com/uploads/default/original/3X/0/0/005faf3b2b30db9847fa784152ff747bf0905643.png) ![Screenshot_20200518-161238](https://help.nextcloud.com/uploads/default/original/3X/e/1/e149742745629a20564200eab11bb878bde7603d.png)

---

<div class="post-metadata">

**Author:** ![Nemskiller](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nemskiller/32/875_2.png) [@Nemskiller](https://help.nextcloud.com/u/Nemskiller)\
**Post date:** [May 18, 2020, 11:34am UTC](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282/20 "2020-05-18T11:34:38Z")

</div>

@skumar I don’t have this problem.  
Look at this image i am on LineageOS 16.  
Are you using my own onlyoffice docker like you can use in my HOW TO, or another onlyoffice docker container you get elsewhere ?

I just revert back code from the time it work on iOS and Android.

 ![image](https://help.nextcloud.com/uploads/default/original/3X/a/e/ae20194dfa1e47ec1ba4c51e004b83acb0962c99.jpeg)

[Next page](https://help.nextcloud.com/t/onlyoffice-compiled-with-mobile-edit-back/79282.md?page=2)
