Skip to end of metadata
Go to start of metadata

Supported Distros

  • This instruction is only for Ubuntu 16.04. Docker container running on a Ubuntu 14.04 host is not supported.


  1. Install docker container from Linux repository packages.

    sudo apt update
    sudo apt install


  2. Install apache and necessary modules

    sudo apt install apache2
    sudo a2enmod proxy
    sudo a2enmod proxy_wstunnel
    sudo a2enmod proxy_http
    sudo a2enmod ssl
  3.  Create a file /etc/apache2/sites-available/ (use a name derived from your own URL here) with following lines:

      <VirtualHost *:80>

  4. Create a file /etc/apache2/sites-available/ with following lines:


    - You will need SSL certificate for the domain you will running CODE server on and the associated private key for this step.
    -  Place the certificate in the path /etc/apache2/ssl/server.crt
    -  Place the key in the path /etc/apache2/ssl/server.key

      <IfModule mod_ssl.c>
    <VirtualHost *:443>
      SSLEngine on
      # Intermediate configuration, tweak to your needs
      SSLProtocol             all -SSLv2 -SSLv3
     SSLHonorCipherOrder     on
     SSLCompression          off
      SSLCertificateFile /etc/apache2/ssl/server.crt
      SSLCertificateKeyFile /etc/apache2/ssl/server.key
      # Encoded slashes need to be allowed
      AllowEncodedSlashes NoDecode
      # Container uses a unique non-signed certificate
      SSLProxyEngine On
      SSLProxyVerify None
      SSLProxyCheckPeerCN Off
      SSLProxyCheckPeerName Off
      # keep the host
      ProxyPreserveHost On
      # static html, js, images, etc. served from loolwsd
      # loleaflet is the client part of LibreOffice Online
      ProxyPass /loleaflet retry=0
      ProxyPassReverse /loleaflet
      # WOPI discovery URL
      ProxyPass /hosting/discovery retry=0
      ProxyPassReverse /hosting/discovery
      # Main websocket
      ProxyPassMatch "/lool/(.*)/ws$" wss://$1/ws nocanon
      # Admin Console websocket
      ProxyPass /lool/adminws wss://
      # Download as, Fullscreen presentation and Image upload operations
      ProxyPass /lool
      ProxyPassReverse /lool
  5. Enables sites configured from above steps

    sudo a2ensite
    sudo a2ensite
  6. For production mode, enable aufs storage driver for docker. First install necessary kernel modules for this

    sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual aufs-tools
  7. For production mode, enable aufs storage driver for docker. To enable aufs, edit file /etc/default/docker and add the following line and save the file.

  8. Reboot the host running the docker container.

  9. Download CODE docker container

    sudo docker pull collabora/code
  10. Start the CODE docker container

    sudo docker run -t -d -p -e 'domain=filecloudserver\\.yourdomain\\.com' --restart always --cap-add MKNOD collabora/code
  • No labels