2019-11-06 22:26:30 +01:00
|
|
|
version: '3'
|
|
|
|
volumes:
|
|
|
|
# data directory: here are the files stored (/var/lib/egroupware by default)
|
|
|
|
data:
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
# to upgrade an existing non-docker installation most easy is to use the existing
|
|
|
|
# data directory /var/lib/egroupware AND the host database see below
|
|
|
|
#device: /var/lib/egroupware
|
|
|
|
# otherwise data is stored in data subdirectory of the current directory
|
|
|
|
device: $PWD/data
|
|
|
|
# sources directory or document root mounted as /var/www inside the container
|
|
|
|
sources:
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
# use this if you have an existing document root with an egroupware directory inside
|
|
|
|
#device: /var/www
|
|
|
|
# otherwise sources/document is stored in sources subdirectory of current directory
|
|
|
|
device: $PWD/sources
|
|
|
|
# sources for push server, swoolpush subdirectory of egroupware
|
|
|
|
sources-push:
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
2019-11-11 21:12:26 +01:00
|
|
|
device: $PWD/sources/egroupware/swoolepush
|
2020-06-13 15:14:14 +02:00
|
|
|
# volume to store config.inc.php file / token shared between egroupware and push container
|
|
|
|
push-config:
|
2020-01-06 19:01:28 +01:00
|
|
|
# collabora-config
|
|
|
|
collabora-config:
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
# to upgrade an existing non-docker installation most easy is to use the existing
|
|
|
|
# data directory /var/lib/egroupware AND the host database see below
|
|
|
|
#device: /var/lib/egroupware/default/loolwsd
|
|
|
|
# otherwise data is stored in data subdirectory of the current directory
|
|
|
|
device: $PWD/data/default/loolwsd
|
2019-11-06 22:26:30 +01:00
|
|
|
# for Mac and Windows, do NOT use a directory for the DB, as the Docker host is in a VM!
|
|
|
|
db:
|
|
|
|
sessions:
|
|
|
|
# cache files from compose, npm and yarn (actually /root inside the container)
|
|
|
|
cache:
|
2020-02-09 19:10:34 +01:00
|
|
|
# store Rocket.Chat MongoDB on an (internal) Volume
|
|
|
|
mongo:
|
|
|
|
# directory to store MongoDB dumps
|
|
|
|
rocketchat-dumps:
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: $PWD/data/default/rocketchat/dump
|
|
|
|
rocketchat-uploads:
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: $PWD/data/default/rocketchat/uploads
|
|
|
|
|
2019-11-06 22:26:30 +01:00
|
|
|
services:
|
|
|
|
egroupware:
|
2022-02-03 08:36:27 +01:00
|
|
|
# you can also use tags like: 7.4, 8.0 or 8.1 depending on the PHP version you want to use
|
|
|
|
image: egroupware/development:latest
|
2019-11-06 22:26:30 +01:00
|
|
|
# setting a default language for a new installation
|
|
|
|
#environment:
|
|
|
|
#- LANG=de
|
|
|
|
volumes:
|
2023-07-10 16:02:30 +02:00
|
|
|
- $PWD/sources:/var/www
|
|
|
|
- $PWD/data:/var/lib/egroupware
|
|
|
|
- $PWD/sessions:/var/lib/php/sessions
|
|
|
|
- $PWD/cache:/root
|
|
|
|
- $PWD/push-config:/var/lib/egroupware-push
|
2019-11-06 22:26:30 +01:00
|
|
|
# if you want to use the host database:
|
|
|
|
# 1. comment out the whole db service below AND
|
|
|
|
# 2. set EGW_DB_HOST=localhost AND
|
|
|
|
# 3. uncomment the next line and modify the host path (first one), it depends on your distro:
|
2020-02-11 09:03:09 +01:00
|
|
|
# - RHEL/CentOS /var/lib/mysql/mysql.sock:/var/run/mysqld/mysqld.sock
|
2020-02-11 14:24:36 +01:00
|
|
|
# - openSUSE/SLE /var/run/mysql/mysql.sock:/var/run/mysqld/mysqld.sock
|
2020-02-11 09:03:09 +01:00
|
|
|
# - Debian/Ubuntu /var/run/mysqld:/var/run/mysqld
|
|
|
|
#- /var/run/mysqld:/var/run/mysqld
|
|
|
|
# private CA so egroupware can validate your certificate to talk to Collabora or Rocket.Chat
|
|
|
|
# multiple certificates (eg. a chain) have to be single files in a directory, with one named private-ca.crt!
|
|
|
|
#- /etc/egroupware-docker/private-ca.crt:/usr/local/share/ca-certificates/private-ca.crt:ro
|
2019-11-06 22:26:30 +01:00
|
|
|
environment:
|
|
|
|
#
|
|
|
|
# MariaDB/MySQL host to use: for internal service use "db", for host database (socket bind-mounted into container) use "localhost"
|
|
|
|
- EGW_DB_HOST=db
|
|
|
|
# grant host is needed for NOT using localhost / unix domain socket for MySQL/MariaDB
|
|
|
|
- EGW_DB_GRANT_HOST=172.%
|
|
|
|
# for internal db service you should to specify a root password here AND in db service
|
|
|
|
# a database "egroupware" with a random password is created for you on installation (password is stored in header.inc.php in data directory)
|
|
|
|
#- EGW_DB_ROOT=root
|
|
|
|
- EGW_DB_ROOT_PW=secret
|
|
|
|
# alternativly you can specify an already existing database with full right by the given user!
|
|
|
|
#- EGW_DB_NAME=egroupware
|
|
|
|
#- EGW_DB_USER=egroupware
|
|
|
|
#- EGW_DB_PASS=
|
|
|
|
#
|
|
|
|
# further post_install.php arguments can be passed as a single enviroment variable with space separated assignments
|
|
|
|
# "<name1>=<value1> <name2>=<value2>" see https://github.com/EGroupware/egroupware/blob/master/doc/rpm-build/post_install.php#L17
|
|
|
|
# to configure eg. LDAP for authentication and account storage use
|
|
|
|
#- EGW_POST_INSTALL='account-auth=ldap,ldap ldap_base=ou=egroupware,dc=example,dc=org ldap_host=tls://ldap.example.org ldap_admin=cn=admin,$base ldap_admin_pw=secret ldap_context=cn=users,$base ldap_group_context=cn=groups,$base'
|
|
|
|
#
|
|
|
|
# extra non-default apps (need to start with EGW_EXTRA_APP!)
|
|
|
|
#
|
|
|
|
# EPL apps (need extra credentials!)
|
|
|
|
#- EGW_EXTRA_APPS_EPL=https://github.com/EGroupwareGmbH/epl.git https://github.com/EGroupwareGmbH/esyncpro.git https://github.com/EGroupwareGmbH/policy.git https://github.com/EGroupwareGmbH/webauthn.git
|
|
|
|
# old Wiki
|
2022-09-20 11:16:03 +02:00
|
|
|
#- EGW_EXTRA_APP_WIKI=https://github.com/EGroupware/wiki.git
|
|
|
|
# old API and eTemplate(1), required for upgrades from before 14.3
|
|
|
|
#- EGW_EXTRA_APP_OLDAPI=https://github.com/EGroupware/phpgwapi.git https://github.com/EGroupware/etemplate.git
|
2019-11-06 22:26:30 +01:00
|
|
|
#
|
2024-06-06 14:59:44 +02:00
|
|
|
# XDEBUG_REMOTE_HOST need to be set, Docker Desktop can use host.docker.internal or Linux the docker0 interface 172.17.0.1
|
|
|
|
- XDEBUG_REMOTE_HOST=host.docker.internal
|
2019-11-06 22:26:30 +01:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
container_name: egroupware
|
|
|
|
# set the ip-address of your docker host AND your official DNS name so EGroupware
|
|
|
|
# can access Rocket.Chat or Collabora without the need to go over your firewall
|
|
|
|
#extra_hosts:
|
|
|
|
#- "my.host.name:ip-address"
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:stable-alpine
|
|
|
|
volumes:
|
2023-07-10 16:02:30 +02:00
|
|
|
- $PWD/sources:/var/www:ro
|
2019-11-06 22:26:30 +01:00
|
|
|
# to add a certificate create a certificate.pem containing (in that order)
|
|
|
|
# 1. private key
|
|
|
|
# 2. public key
|
|
|
|
# 3. (optional) chain certificates
|
|
|
|
# uncomment to the next line
|
|
|
|
# ./certificate.pem:/etc/ssl/private/certificate.pem
|
|
|
|
# AND uncomment the three lines starting with "listen 443", "ssl_certificate", "ssl_certificate_key" in nginx.conf
|
|
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
|
|
ports:
|
2022-02-03 08:36:27 +01:00
|
|
|
# if no webserver is running on the host, change (first) number to 80 and 443
|
2023-07-10 16:02:30 +02:00
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2019-11-06 22:26:30 +01:00
|
|
|
depends_on:
|
|
|
|
- egroupware
|
2021-04-21 14:42:25 +02:00
|
|
|
- push
|
2020-01-06 19:01:28 +01:00
|
|
|
- collabora-key
|
2024-05-02 14:48:34 +02:00
|
|
|
#- rocketchat
|
2019-11-06 22:26:30 +01:00
|
|
|
container_name: egroupware-nginx
|
2022-02-03 08:36:27 +01:00
|
|
|
restart: always
|
2019-11-06 22:26:30 +01:00
|
|
|
|
2022-09-20 11:16:03 +02:00
|
|
|
# run an own MariaDB:10.6 (you can use EGroupware's database backup and restore to add your existing database)
|
2019-11-06 22:26:30 +01:00
|
|
|
db:
|
2022-09-20 11:16:03 +02:00
|
|
|
image: mariadb:10.6
|
2019-11-06 22:26:30 +01:00
|
|
|
environment:
|
|
|
|
#- MYSQL_ROOT=root
|
|
|
|
- MYSQL_ROOT_PASSWORD=secret
|
2023-07-10 16:02:30 +02:00
|
|
|
#- MARIADB_AUTO_UPGRADE=true
|
2019-11-06 22:26:30 +01:00
|
|
|
volumes:
|
2023-07-10 16:02:30 +02:00
|
|
|
#for WSL2 no $PWD/ here! otherwhise connection is denied
|
2019-11-06 22:26:30 +01:00
|
|
|
- db:/var/lib/mysql
|
2022-02-03 08:36:27 +01:00
|
|
|
# to add an own persistent configuration
|
|
|
|
#- ./mariadb.cnf:/etc/mysql/mariadb.conf.d/egroupware.cnf
|
2019-11-06 22:26:30 +01:00
|
|
|
container_name: egroupware-db
|
2022-02-03 08:36:27 +01:00
|
|
|
restart: always
|
2020-01-06 19:01:28 +01:00
|
|
|
# make mysql also available on the host
|
|
|
|
#ports:
|
|
|
|
#- "3306:3306"
|
2019-11-06 22:26:30 +01:00
|
|
|
|
|
|
|
# push server using phpswoole
|
2019-11-11 21:12:26 +01:00
|
|
|
push:
|
2022-02-03 08:36:27 +01:00
|
|
|
image: phpswoole/swoole:latest-alpine
|
|
|
|
command:
|
|
|
|
- /var/www/server.php
|
2019-11-11 21:12:26 +01:00
|
|
|
volumes:
|
2023-07-10 16:02:30 +02:00
|
|
|
# push server needs this source
|
|
|
|
- $PWD/sources/egroupware/swoolepush:/var/www
|
|
|
|
- $PWD/sessions:/var/lib/php/sessions
|
|
|
|
- $PWD/push-config:/var/lib/egroupware-push
|
2019-11-11 21:12:26 +01:00
|
|
|
container_name: egroupware-push
|
2022-02-03 08:36:27 +01:00
|
|
|
restart: always
|
2021-04-21 14:42:25 +02:00
|
|
|
depends_on:
|
|
|
|
- egroupware
|
2019-11-06 22:26:30 +01:00
|
|
|
|
|
|
|
# automatic updates of all containers daily at 4am
|
|
|
|
# see https://containrrr.github.io/watchtower for more information
|
|
|
|
watchtower:
|
|
|
|
image: containrrr/watchtower
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
# For automatic EPL Updates (not necessary for CE!) you need to pass docker
|
|
|
|
# credentials into watchtower after running: docker login download.egroupware.org
|
|
|
|
#- /root/.docker/config.json:/config.json:ro
|
|
|
|
environment:
|
|
|
|
- WATCHTOWER_CLEANUP=true # delete old image after update to not fill up the disk
|
|
|
|
# for email notifications add your email and mail-server here
|
|
|
|
#- WATCHTOWER_NOTIFICATIONS=email
|
|
|
|
#- WATCHTOWER_NOTIFICATIONS_LEVEL=info # possible values: panic, fatal, error, warn, info or debug
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_FROM="watchtower@my-domain.com"
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_TO="me@my-domain.com"
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER="mail.my-domain.com" # if you give your MX here, you need no user/password
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=25
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER="watchtower@my-domain.com"
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD="secret"
|
|
|
|
command: --schedule "0 0 4 * * *"
|
|
|
|
container_name: egroupware-watchtower
|
|
|
|
restart: always
|
2020-01-06 19:01:28 +01:00
|
|
|
|
|
|
|
# Collabora Online Office
|
|
|
|
collabora-key:
|
|
|
|
image: "quay.io/egroupware/collabora-key:stable"
|
|
|
|
#image: collabora/code:latest
|
|
|
|
volumes:
|
2023-07-10 16:02:30 +02:00
|
|
|
# $PWD/collabora-config:/etc/loolwsd
|
2022-02-02 19:51:49 +01:00
|
|
|
# support for Collabora/CODE 21.11+
|
2023-07-10 16:02:30 +02:00
|
|
|
- $PWD/data/default/loolwsd:/etc/coolwsd
|
2020-01-06 19:01:28 +01:00
|
|
|
restart: always
|
|
|
|
container_name: collabora-key
|
|
|
|
# set the ip-address of your docker host AND your official DNS name so Collabora
|
|
|
|
# can access EGroupware without the need to go over your firewall
|
|
|
|
#extra_hosts:
|
|
|
|
#- "my.host.name:ip-address"
|
2022-02-03 08:36:27 +01:00
|
|
|
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:
|
2023-07-10 16:02:30 +02:00
|
|
|
- $PWD/data/default/loolwsd:/tmp/coolwsd
|
2020-02-09 19:10:34 +01:00
|
|
|
|
|
|
|
# Rocket.Chat server
|
2024-05-02 14:48:34 +02:00
|
|
|
#rocketchat:
|
2024-07-09 09:29:11 +02:00
|
|
|
# image: quay.io/egroupware/rocket.chat:stable6
|
2024-05-29 08:52:36 +02:00
|
|
|
# command: >
|
|
|
|
# sh -c
|
|
|
|
# "while true; do
|
|
|
|
# node main.js &&
|
|
|
|
# s=$$? && break || s=$$?;
|
|
|
|
# echo \"Could not reach MongoDB. Waiting 5 secs ...\";
|
|
|
|
# sleep 5;
|
|
|
|
# done; (exit $$s)"
|
2024-05-02 14:48:34 +02:00
|
|
|
# restart: unless-stopped
|
|
|
|
# volumes:
|
|
|
|
# - $PWD/data/default/rocketchat/uploads:/app/uploads
|
|
|
|
# # if EGroupware uses a certificate from a private CA, OAuth authentication will fail, you need to:
|
|
|
|
# # - have the CA certificate stored at /etc/egroupware-docker/private-ca.crt
|
|
|
|
# # - uncomment the next 2 lines about the private CA:
|
|
|
|
# # - /etc/egroupware-docker/private-ca.crt:/usr/local/share/ca-certificates/private-ca.crt:ro
|
|
|
|
# environment:
|
|
|
|
# # - NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/private-ca.crt
|
|
|
|
# # IMPORTANT: change ROOT_URL to your actual url eg. https://domain.com/rocketchat
|
|
|
|
# - ROOT_URL=http://localhost/rocketchat
|
|
|
|
# - PORT=3000
|
2024-07-09 09:29:11 +02:00
|
|
|
# - MONGO_URL=mongodb://mongo:27017/rocketchat?replicaSet=rs0&directConnection=true
|
|
|
|
# - MONGO_OPLOG_URL=mongodb://mongo:27017/local?replicaSet=rs0&directConnection=true
|
2024-05-02 14:48:34 +02:00
|
|
|
# # - HTTP_PROXY=http://proxy.domain.com
|
|
|
|
# # - HTTPS_PROXY=http://proxy.domain.com
|
|
|
|
# depends_on:
|
|
|
|
# - mongo
|
|
|
|
# container_name: rocketchat
|
|
|
|
# # set the ip-address of your docker host AND your official DNS name so Rocket.Chat
|
|
|
|
# # can access EGroupware without the need to go over your firewall
|
|
|
|
# #extra_hosts:
|
|
|
|
# #- "my.host.name:ip-address"
|
2020-02-09 19:10:34 +01:00
|
|
|
|
|
|
|
# MongoDB for Rocket.Chat
|
2024-05-02 14:48:34 +02:00
|
|
|
#mongo:
|
|
|
|
# image: mongo:5.0
|
|
|
|
# restart: unless-stopped
|
|
|
|
# volumes:
|
|
|
|
# - mongo:/data/db
|
|
|
|
# - $PWD/data/default/rocketchat/dump:/dump
|
2024-07-09 09:29:11 +02:00
|
|
|
# command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
|
2024-05-02 14:48:34 +02:00
|
|
|
# container_name: rocketchat-mongo
|
2020-02-09 19:10:34 +01:00
|
|
|
# this container's job is just run the command to initialize the replica set.
|
|
|
|
# it will run the command and remove himself (it will not stay running)
|
2024-05-02 14:48:34 +02:00
|
|
|
#mongo-init-replica:
|
|
|
|
# image: mongo:5.0
|
2024-07-09 09:29:11 +02:00
|
|
|
# command: >
|
|
|
|
# bash -c
|
|
|
|
# "for (( ; ; )); do
|
|
|
|
# mongo mongo/rocketchat --eval \"
|
|
|
|
# rs.initiate({
|
|
|
|
# _id: 'rs0',
|
|
|
|
# members: [ { _id: 0, host: 'localhost:27017' } ]})\" &&
|
|
|
|
# s=$$? && break || s=$$?;
|
|
|
|
# echo \"Could not reach MongoDB. Waiting 5 secs ...\";
|
|
|
|
# sleep 5;
|
|
|
|
# done; (exit $$s)"
|
2024-05-02 14:48:34 +02:00
|
|
|
# depends_on:
|
|
|
|
# - mongo
|
2020-04-02 21:56:08 +02:00
|
|
|
|
2022-11-15 14:34:38 +01:00
|
|
|
# phpMyAdmin
|
|
|
|
phpmyadmin:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: phpmyadmin
|
|
|
|
container_name: phpmyadmin
|
|
|
|
hostname: phpmyadmin
|
|
|
|
# pre 20.1 installs run MariaDB on the host and need to pass the socket (to use egroupware user and it's password only valid on localhost)
|
|
|
|
#volumes:
|
|
|
|
# - /var/run/mysqld/mysqld.sock:/tmp/mysql.sock
|
|
|
|
environment:
|
|
|
|
# PMA_HOST: use localhost, if you use a socket (pre 20.1 install) or db for 20.1+ installations
|
|
|
|
- PMA_HOST=db
|
|
|
|
# phpMyAdmin needs the full URL incl. protocol, domain, path and a trailing slash!
|
|
|
|
- PMA_ABSOLUTE_URI=http://localhost/phpmyadmin/
|
|
|
|
|
2020-04-02 21:56:08 +02:00
|
|
|
# Portainer: Docker GUI (needs to be enabled in nginx.conf too!)
|
|
|
|
# portainer:
|
|
|
|
# image: portainer/portainer
|
|
|
|
# command: -H unix:///var/run/docker.sock
|
|
|
|
# restart: always
|
|
|
|
# ports:
|
|
|
|
# - 9000:9000
|
|
|
|
# - 8000:8000
|
|
|
|
# volumes:
|
|
|
|
# - /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
# - portainer_data:/data
|
2022-09-20 11:16:03 +02:00
|
|
|
# container_name: portainer
|