Installation du service Collaboro Online sous Docker

mkdir -p /app/collaboraonline

docker-compose.yml

# Adapted from https://thomaswildetech.com/blog/2025/05/01/setting-up-nextcloud-with-docker-compose/#docker-compose_1 services: collabora: #image: collabora/code:24.04.12.3.1 #image: collabora/code:25.04.8.1.1 image: collabora/code #privileged: true #network_mode: "host" ports: #- 127.0.0.1:9980:9980 - 172.18.0.1:9980:9980 container_name: collabora # release notes: https://www.collaboraonline.com/release-notes/ networks: pielonet: ipv4_address: 172.18.0.2 environment: aliasgroup1: "https://drive.nuaje.fr:443" # Aliases must be separated by `|` #aliasgroup2: ${alias21} # Remove this line if you don't have any other services using Collabora #DONT_GEN_SSL_CERT: "YES" extra_params: | --o:ssl.enable=true \ --o:ssl.ssl_verification=true \ --o:ssl.termination=true \ --o:welcome.enable=false \ --o:net.proto=IPv4 \ --o:user_interface.use_integration_theme=false username: admin password: xxxxxxxxxxxxxxxxxxxxx #COLUMNS: 1000 cap_add: - MKNOD logging: driver: journald restart: always #command: ["bash", "-c", "coolconfig generate-proof-key ; /start-collabora-online.sh"] healthcheck: test: [ "CMD", "curl", "-f", "-k", "https://172.18.0.2:9980/hosting/discovery" ] networks: pielonet: external: true

/etc/systemd/system/collaboraonline.service

[Unit]
Description=Collabora Online Code
After=network-online.target
Wants=network-online.target
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
User=root
Group=root
RemainAfterExit=true
WorkingDirectory=/app/collaboraonline
ExecStart=/usr/bin/docker compose up -d --remove-orphans
ExecStop=/usr/bin/docker compose down
[Install]
WantedBy=multi-user.target