Project

General

Profile

Actions

Docker Install

- Built-in CODE Server -

Please note that these instructions assume a certain level of familiarity with Docker, server administration, networking, and reverse proxy setup. Be prepared to troubleshoot potential issues that may arise during the setup process.
Additionally, be aware that software versions and documentation can change over time, so always refer to the latest official documentation for the most up-to-date and accurate instructions.

Install Docker:

If Docker is not already installed on your system, you can follow the official Docker installation instructions for Ubuntu: https://docs.docker.com/engine/install/ubuntu/ or Install Docker : https://lightningcr.com/projects/docker/wiki/Setup_Docker_in_Ubuntu

Pull and Run the Collabora Online Docker Image:

Run the following command to pull and run the Collabora Online

sudo docker pull collabora/code
sudo docker run -t -d -p 0.0.0.0:9980:9980 -e "domain=nextcloud\\.example\\.com" --restart always --cap-add MKNOD collabora/code

Pull and Run the Collabora Online Docker Image:

Use the given Docker command to pull and run the Collabora Online image. This command starts a Docker container running Collabora Online with the specified options.
The -p flag maps the container port 9980 to all available network interfaces (0.0.0.0:9980:9980), making it accessible externally.
The -e flag sets the domain parameter to your Nextcloud server's domain.
--restart always ensures the container restarts automatically if the system reboots.
--cap-add MKNOD adds the MKNOD capability to the container for device node creation.

NOTE:

For this to work right you need to have the name of your nextcloud server e.g nextcloud.example.com so that docker point to it.

Setup Reverse Proxy

Set up a reverse proxy (e.g., Nginx or Apache) to forward incoming traffic on a specific port (e.g., 9980) to the Collabora Online Docker container's IP and port.

Make sure the Scheme is https will will not work as http

Make sure your DNS settings point to the IP address of your reverse proxy and update your domain provider's DNS records accordingly.

Configure SSL certificates for your reverse proxy to ensure secure connections (HTTPS) to Collabora Online.

Nextcloud Setup

Log in to your Nextcloud instance as an administrator.
go to "Settings" > "Administration" > "Office"

In the "Collabora Online server" section, enter the URL of your Collabora Online server, such as https://collabora.example.com (replace with your domain).

Check If It Works

Updated by Gareth Eaton 8 months ago · 1 revisions