Somik's Home

Server admins cheat codes

Use the following docker code to host your own online office using Code by Collabora.

version: '3'
services:
  code:
    ports:
      - 9980:9980
    environment:
      - "domain=nextcloud.example.com"

      - VIRTUAL_HOST=office.example.com
      - VIRTUAL_PROTO=https
    restart: always
    container_name: collabora_code
    image: collabora/code
    hostname: office.example.com

Or use the following docker code to host your own online office using Onlyoffice.

You can host both as well using different domains for each and see which one you like more.

version: '3'

volumes:
  logs:
    name: onlyoffice_logs
  data:
    name: onlyoffice_data
  lib:
    name: onlyoffice_lib
  db:
    name: onlyoffice_db
  

services:
  documentserver:
    image: onlyoffice/documentserver
    ports:
      - 8888:80
    environment:
      JWT_ENABLED: true
      JWT_SECRET: provideAJwtSecretHereAndMatchItInNextCloudSettings
    restart: always
    volumes:
      - logs:/var/log/onlyoffice
      - data:/var/www/onlyoffice/Data
      - lib:/var/lib/onlyoffice
      - db:/var/lib/postgresql

© Beli. All Rights Reserved.