Docker Install » History » Version 1
Gareth Eaton, 09/10/2023 05:27 PM
1 | 1 | Gareth Eaton | h1. Docker Install |
---|---|---|---|
2 | |||
3 | |||
4 | - Built-in CODE Server - |
||
5 | |||
6 | 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. |
||
7 | 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. |
||
8 | |||
9 | h3. Install Docker: |
||
10 | |||
11 | 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 |
||
12 | |||
13 | h3. Pull and Run the Collabora Online Docker Image: |
||
14 | |||
15 | Run the following command to pull and run the Collabora Online |
||
16 | |||
17 | |||
18 | <pre> |
||
19 | sudo docker pull collabora/code |
||
20 | sudo docker run -t -d -p 0.0.0.0:9980:9980 -e "domain=nextcloud\\.example\\.com" --restart always --cap-add MKNOD collabora/code |
||
21 | </pre> |
||
22 | |||
23 | Pull and Run the Collabora Online Docker Image: |
||
24 | |||
25 | 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. |
||
26 | The -p flag maps the container port 9980 to all available network interfaces (0.0.0.0:9980:9980), making it accessible externally. |
||
27 | The -e flag sets the domain parameter to your Nextcloud server's domain. |
||
28 | --restart always ensures the container restarts automatically if the system reboots. |
||
29 | --cap-add MKNOD adds the MKNOD capability to the container for device node creation. |
||
30 | |||
31 | h2. *NOTE:* |
||
32 | |||
33 | 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. |
||
34 | |||
35 | h3. Setup Reverse Proxy |
||
36 | |||
37 | 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. |
||
38 | |||
39 | Make sure the Scheme is *https* will will not work as http |
||
40 | |||
41 | Make sure your DNS settings point to the IP address of your reverse proxy and update your domain provider's DNS records accordingly. |
||
42 | |||
43 | Configure SSL certificates for your reverse proxy to ensure secure connections (HTTPS) to Collabora Online. |
||
44 | |||
45 | h3. Nextcloud Setup |
||
46 | |||
47 | Log in to your Nextcloud instance as an administrator. |
||
48 | go to "Settings" > "Administration" > "Office" |
||
49 | |||
50 | In the "Collabora Online server" section, enter the URL of your Collabora Online server, such as https://collabora.example.com (replace with your domain). |
||
51 | |||
52 | Check If It Works |