egroupware_official/doc/docker
2024-09-05 10:25:46 +02:00
..
development use XDEBUG_REMOTE_HOST=host.docker.internal now working in all Docker Desktops 2024-06-06 14:59:44 +02:00
fpm changing default PHP version to 8.3 used since some time in releases 2024-09-05 10:25:46 +02:00
docker-compose.yml fix docker-compose files to allow Rocket.Chat Alpine containers (not having bash installed) 2024-05-29 08:52:51 +02:00
nginx.conf fix Collabora init container and Nginx config for newer Collabora version 2023-04-12 10:29:08 +02:00
README.md use a docker-compose.override.yml for your changes 2023-09-28 08:47:23 +02:00

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.

Quick instructions

curl https://raw.githubusercontent.com/EGroupware/egroupware/master/doc/docker/docker-compose.yml > docker-compose.yml
curl https://raw.githubusercontent.com/EGroupware/egroupware/master/doc/docker/nginx.conf > nginx.conf
# edit docker-compose.yml or nginx.conf, by default it will run on http://localhost:8080/
# create a few directories upfront, otherwise the containers won't start up:
mkdir data # this is where egroupware data is stored, it's by default a subdir of the directory of docker-compose.yml
mkdir -p data/default/loolwsd # this is where collabora config is stored
mkdir -p data/default/rocketchat/dump # rocket.chat dumps
mkdir -p data/default/rocketchat/uploads # rocket.chat uploads
mkdir sources # egroupware sources will show up in this folder
docker-compose up -d
# grand access rights to source sub folders
#remove sources/egroupware/swolepush --> egw install complains that /egroupware has to be empty

More information

The provided docker-compose.yml will run the following container:

  • egroupware running latest PHP 8.1 as FPM (see fpm subdirectory for more information)
  • egroupware-push running PHP 8.1 Swoole Alpine image for websocket connections
  • egroupware-nginx running Nginx as webserver (by default http only on port 8080)
  • egroupware-db latest MariaDB 10.6
  • 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

Docker files: docker-compose.yml and docker-compose.overwrite.yml

The docker-compose.yml should be left unchanged for easier updating. You can place your changes in a docker-compose.override.yml file:

version: '3'
services:
  egroupware:
    image: egroupware/egroupware:23.1
    extra_hosts:
      - "egw.example.org:172.17.0.1"