From e887a142386771a6afe13a7cec6c4e50ebde45c2 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 19 Jul 2022 15:45:09 +0200 Subject: [PATCH] add Collabora init container and note that this is not the recommended was to install EGroupware on a Linux server --- doc/docker/README.md | 15 ++++++++++++++- doc/docker/docker-compose.yml | 11 ++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/doc/docker/README.md b/doc/docker/README.md index 75b47ea951..47e6023e03 100644 --- a/doc/docker/README.md +++ b/doc/docker/README.md @@ -1,5 +1,8 @@ # Running EGroupware in Docker +> This is NOT the recommended way of installing EGroupware on a Linux server! +> Please consult the [installation instructions in our wiki](https://github.com/EGroupware/egroupware/wiki/Installation-using-egroupware-docker-RPM-DEB-package). + ## Quick instructions ``` curl https://raw.githubusercontent.com/EGroupware/egroupware/master/doc/docker/docker-compose.yml > docker-compose.yml @@ -16,6 +19,7 @@ The provided docker-compose.yml will run the following container: * **egroupware-db** latest MariaDB 10.4 * **egroupware-watchtower** updating all above container automatically daily at 4am * **collabora-key** Collabora Online Office +* **collabora-init** Collabora init container to generate the configuration once * **rocketchat** Rocket.Chat server * **rocketchat-mongodb** MongoDB for Rocket.Chat * **portainer** Portainer Docker GUI @@ -209,6 +213,15 @@ services: # can access EGroupware without the need to go over your firewall #extra_hosts: #- "my.host.name:ip-address" + depends_on: + - collabora-init + + # initialise the collabora-config volume + collabora-init: + image: "quay.io/egroupware/collabora-key:latest" + command: bash -c "test -f /tmp/coolwsd/coolwsd.xml || (cp -p /etc/coolwsd/* /tmp/coolwsd && cd /tmp/coolwsd && ln -s coolwsd.conf loolwsd.conf)" + volumes: + - collabora-config:/tmp/coolwsd # Rocket.Chat server rocketchat: @@ -267,4 +280,4 @@ services: # - /var/run/docker.sock:/var/run/docker.sock # - portainer_data:/data # container_name: portainer -``` +``` \ No newline at end of file diff --git a/doc/docker/docker-compose.yml b/doc/docker/docker-compose.yml index dc54bb0387..495f5ba240 100644 --- a/doc/docker/docker-compose.yml +++ b/doc/docker/docker-compose.yml @@ -187,6 +187,15 @@ services: # can access EGroupware without the need to go over your firewall #extra_hosts: #- "my.host.name:ip-address" + depends_on: + - collabora-init + + # initialise the collabora-config volume + collabora-init: + image: "quay.io/egroupware/collabora-key:latest" + command: bash -c "test -f /tmp/coolwsd/coolwsd.xml || (cp -p /etc/coolwsd/* /tmp/coolwsd && cd /tmp/coolwsd && ln -s coolwsd.conf loolwsd.conf)" + volumes: + - collabora-config:/tmp/coolwsd # Rocket.Chat server rocketchat: @@ -244,4 +253,4 @@ services: # volumes: # - /var/run/docker.sock:/var/run/docker.sock # - portainer_data:/data -# container_name: portainer +# container_name: portainer \ No newline at end of file