7 changed files with 124 additions and 10 deletions
@ -0,0 +1,31 @@ |
|||||
|
# User name for the admin console |
||||
|
username=admin |
||||
|
# Password for the admin console |
||||
|
password=admin |
||||
|
|
||||
|
# By default only limited set of spelling dictionaries and thesauri are configured |
||||
|
# for CODE, mainly for performance reasons. The default set of languages is the |
||||
|
# following: de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru. |
||||
|
# With the dictionaries environment variable you can change this list. |
||||
|
dictionaries=fr_FR en_US en_GB |
||||
|
|
||||
|
# When this environment variable is set (is not “”), then its value will be used |
||||
|
# as server name in /etc/coolwsd/coolwsd.xml. Without this, CODE is not delivering |
||||
|
# a correct host for the websocket connection in case of a proxy in front of it. |
||||
|
server_name=localhost |
||||
|
|
||||
|
# You can pass extra command line parameters to coolwsd via this environment |
||||
|
# variable. For example, if you want to start coolwsd without SSL, when you |
||||
|
# test or develop, the syntax is: -e "extra_params=--o:ssl.enable=false". |
||||
|
# To learn about all possible options, refer to the self-documented |
||||
|
# /etc/coolwsd/coolwsd.xml configuration file in the Docker image. |
||||
|
extra_params=--o:ssl.enable=false --o:ssl.termination=false |
||||
|
|
||||
|
# By default Collabora Online enables the first WOPI host that tries to connect. |
||||
|
# You can define the allowed WOPI hosts by passing environment variables. |
||||
|
aliasgroup1=http://localhost:9980 |
||||
|
|
||||
|
# When this environment variable is set (is not “”), then startup script will |
||||
|
# not generate a new SSL certificate signed by a dummy CA. It is useful, if |
||||
|
# you want to use your own SSL certificate for some reason. |
||||
|
DONT_GEN_SSL_CERT=true |
||||
@ -0,0 +1,54 @@ |
|||||
|
[Unit] |
||||
|
Description=Collabora Online for Nextcloud |
||||
|
Documentation=https://hub.docker.com/r/collabora/code/ |
||||
|
After=network.target |
||||
|
|
||||
|
# Only start if Collabora has been configured |
||||
|
ConditionPathExists=/etc/quadlets/nextcloud/collabora.env |
||||
|
|
||||
|
# Start/stop this unit when the target is started/stopped |
||||
|
PartOf=nextcloud.target |
||||
|
|
||||
|
[Container] |
||||
|
ContainerName=nextcloud-collabora |
||||
|
Image=docker.io/collabora/code:latest |
||||
|
|
||||
|
# No need for root privileges |
||||
|
User=1001 |
||||
|
Group=1001 |
||||
|
|
||||
|
# UID/GID mapping to map the 1001 user inside the container to arbitrary user 10016 / group 10000 on the host |
||||
|
UIDMap=0:1000000:1001 |
||||
|
UIDMap=1001:10016:1 |
||||
|
UIDMap=1002:1001002:64534 |
||||
|
GIDMap=0:1000000:1001 |
||||
|
GIDMap=1001:10000:1 |
||||
|
GIDMap=1002:1001002:64534 |
||||
|
|
||||
|
# Security |
||||
|
SeccompProfile=/etc/quadlets/nextcloud/collabora-seccomp-profile.json |
||||
|
|
||||
|
# Network configuration |
||||
|
Network=host |
||||
|
|
||||
|
# Environment variables from secrets and config |
||||
|
EnvironmentFile=/etc/quadlets/nextcloud/collabora.env |
||||
|
|
||||
|
# Volume mounts |
||||
|
# <none> |
||||
|
|
||||
|
# Health check (equivalent to readiness probe) |
||||
|
HealthCmd=nc -z localhost 9980 |
||||
|
HealthInterval=30s |
||||
|
HealthTimeout=10s |
||||
|
HealthStartPeriod=10s |
||||
|
HealthRetries=3 |
||||
|
|
||||
|
[Service] |
||||
|
Restart=always |
||||
|
RestartSec=10 |
||||
|
TimeoutStartSec=600 |
||||
|
TimeoutStopSec=30 |
||||
|
|
||||
|
[Install] |
||||
|
WantedBy=nextcloud.target |
||||
Loading…
Reference in new issue