CODE
Pastaba
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.
To share a NextCloud server and CODE server with your Jami contacts, run both servers on your local computer and configure them as custom shared services in your Jami account settings. Once configured, your Jami contacts can connect to your NextCloud and CODE servers to collaboratively edit documents, spreadsheets, and presentations directly through Jami.
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.
Patarimas
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