CODE
Notitie
Collabora Online Development Edition (CODE) is based on LibreOffice. It is designed to provide users with a free version of the online office suite, allowing individuals and small teams to access and test its features. CODE is a valuable resource for those looking to utilize LibreOffice’s capabilities in an online collaborative environment.
For this example we will run a NextCloud server and CODE server using and share an office suite with a contact.
Download the nextcloud_collabora.zip ZIP file and unzip it to reveal its contents.
Open a terminal in the unzipped folder.
Create your local environment file:
cp .env.example .env
Edit
.envand set strong values for at least:MYSQL_ROOT_PASSWORDMYSQL_PASSWORDNEXTCLOUD_ADMIN_PASSWORD
Keep these values unless you have a reason to change them:
PUBLIC_HOST=localhostEXPOSED_PORT=18080
Start the stack:
docker compose up -d
Open
http://localhost:18080in your browser.Sign in to Nextcloud using the admin credentials from
.env.In Jami, create a custom shared service with:
Local host:
127.0.0.1Local port:
18080URI scheme:
httpPreferred port on peer:
18080
Share that service with your contact.
Your contact opens your shared service in Jami, then opens
http://localhost:18080on their machine.Open a document in Nextcloud Files to verify collaborative editing works.
Tip
Need to reset everything (accounts, files, DB) and start fresh?
Run the following in the same folder:
docker compose down -v --remove-orphans
docker compose up -d