mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-06 23:46:24 +00:00
move implicit defaults to docker-compose (#353)
Reson: some non-default configuration options are backed into the startup scripts. This can be unexpected when mounting files e.g. in a Kubernetes setup. https://github.com/zokradonh/kopano-docker/issues/294 * core configuration * fix compose for meet * remove interpreter from start script * use default oidc timeout
This commit is contained in:
parent
cfbc22d947
commit
9efed4fe80
3
.pylintrc
Normal file
3
.pylintrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[MASTER]
|
||||||
|
init-hook='import sys; sys.path.append("base")'
|
||||||
|
disable=C0114, # missing-module-docstring
|
@ -28,7 +28,7 @@ ENV \
|
|||||||
RELEASE_KEY_DOWNLOAD=$RELEASE_KEY_DOWNLOAD
|
RELEASE_KEY_DOWNLOAD=$RELEASE_KEY_DOWNLOAD
|
||||||
|
|
||||||
LABEL maintainer=az@zok.xyz \
|
LABEL maintainer=az@zok.xyz \
|
||||||
org.label-schema.name="Kopano core container" \
|
org.label-schema.name="Kopano Groupware Core container" \
|
||||||
org.label-schema.description="Container for running applications out of Kopano Groupware Core" \
|
org.label-schema.description="Container for running applications out of Kopano Groupware Core" \
|
||||||
org.label-schema.url="https://kopano.io" \
|
org.label-schema.url="https://kopano.io" \
|
||||||
org.label-schema.vcs-ref=$VCS_REF \
|
org.label-schema.vcs-ref=$VCS_REF \
|
||||||
|
8
core/defaultconfigs/dagent.py
Normal file → Executable file
8
core/defaultconfigs/dagent.py
Normal file → Executable file
@ -1,14 +1,12 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Component specific configurations
|
# Component specific configurations
|
||||||
kcconf.configkopano({
|
kcconf.configkopano({
|
||||||
r"/tmp/kopano/dagent.cfg":
|
r"/tmp/kopano/dagent.cfg":
|
||||||
{
|
{
|
||||||
'lmtp_listen': "0.0.0.0:2003",
|
# Certain configuration can be pre-defined at startup:
|
||||||
'log_file': "-",
|
#'lmtp_listen': "0.0.0.0:2003",
|
||||||
'log_level': "4",
|
|
||||||
'tmp_path': "/tmp/dagent/"
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
8
core/defaultconfigs/gateway.py
Normal file → Executable file
8
core/defaultconfigs/gateway.py
Normal file → Executable file
@ -1,14 +1,12 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Component specific configurations
|
# Component specific configurations
|
||||||
kcconf.configkopano({
|
kcconf.configkopano({
|
||||||
r"/tmp/kopano/gateway.cfg":
|
r"/tmp/kopano/gateway.cfg":
|
||||||
{
|
{
|
||||||
'imap_listen': "0.0.0.0:143",
|
# Certain configuration can be pre-defined at startup:
|
||||||
'log_file': "-",
|
#'imap_listen': "0.0.0.0:143",
|
||||||
'log_level': "3",
|
|
||||||
'tmp_path': "/tmp/gateway/"
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
2
core/defaultconfigs/grapi.py
Normal file → Executable file
2
core/defaultconfigs/grapi.py
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Override configs from environment variables
|
# Override configs from environment variables
|
||||||
|
7
core/defaultconfigs/ical.py
Normal file → Executable file
7
core/defaultconfigs/ical.py
Normal file → Executable file
@ -1,13 +1,12 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Component specific configurations
|
# Component specific configurations
|
||||||
kcconf.configkopano({
|
kcconf.configkopano({
|
||||||
r"/tmp/kopano/ical.cfg":
|
r"/tmp/kopano/ical.cfg":
|
||||||
{
|
{
|
||||||
'ical_listen': "0.0.0.0:8080",
|
# Certain configuration can be pre-defined at startup:
|
||||||
'log_file': "-",
|
#'ical_listen': "0.0.0.0:8080",
|
||||||
'log_level': "3"
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
10
core/defaultconfigs/kapi.py
Normal file → Executable file
10
core/defaultconfigs/kapi.py
Normal file → Executable file
@ -1,16 +1,12 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Component specific configurations
|
# Component specific configurations
|
||||||
kcconf.configkopano({
|
kcconf.configkopano({
|
||||||
r"/tmp/kopano/kapid.cfg":
|
r"/tmp/kopano/kapid.cfg":
|
||||||
{
|
{
|
||||||
'log_level': "info",
|
# Certain configuration can be pre-defined at startup:
|
||||||
'listen': "0.0.0.0:8039",
|
#'listen': "0.0.0.0:8039",
|
||||||
'DEFAULT_PLUGIN_PUBS_SECRET_KEY_FILE': "/kopano/ssl/kapid-pubs-secret.key",
|
|
||||||
'plugin_kvs_db_datasource': "/kopano/data/kapi-kvs/kvs.db",
|
|
||||||
'plugin_grapi_socket_path': "/var/run/kopano/grapi"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
6
core/defaultconfigs/monitor.py
Normal file → Executable file
6
core/defaultconfigs/monitor.py
Normal file → Executable file
@ -1,12 +1,12 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Component specific configurations
|
# Component specific configurations
|
||||||
kcconf.configkopano({
|
kcconf.configkopano({
|
||||||
r"/tmp/kopano/monitor.cfg":
|
r"/tmp/kopano/monitor.cfg":
|
||||||
{
|
{
|
||||||
'log_file': "-",
|
# Certain configuration can be pre-defined at startup:
|
||||||
'log_level': "4"
|
#'log_level': "4"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
7
core/defaultconfigs/search.py
Normal file → Executable file
7
core/defaultconfigs/search.py
Normal file → Executable file
@ -1,13 +1,12 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Component specific configurations
|
# Component specific configurations
|
||||||
kcconf.configkopano({
|
kcconf.configkopano({
|
||||||
r"/tmp/kopano/search.cfg":
|
r"/tmp/kopano/search.cfg":
|
||||||
{
|
{
|
||||||
'log_file': "-",
|
# Certain configuration can be pre-defined at startup:
|
||||||
'log_level': "4",
|
#'index_path': "/kopano/data/search/"
|
||||||
'index_path': "/kopano/data/search/"
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
14
core/defaultconfigs/server.py
Normal file → Executable file
14
core/defaultconfigs/server.py
Normal file → Executable file
@ -1,20 +1,12 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Component specific configurations
|
# Component specific configurations
|
||||||
kcconf.configkopano({
|
kcconf.configkopano({
|
||||||
r"/tmp/kopano/server.cfg":
|
r"/tmp/kopano/server.cfg":
|
||||||
{
|
{
|
||||||
'attachment_path': "/kopano/data/attachments/",
|
# Certain configuration can be pre-defined at startup:
|
||||||
'kcoidc_initialize_timeout': "360",
|
#'server_listen': "0.0.0.0:236",
|
||||||
'log_file': "-",
|
|
||||||
'log_level': "3",
|
|
||||||
'server_listen_tls': "0.0.0.0:237",
|
|
||||||
'server_listen': "0.0.0.0:236",
|
|
||||||
'softdelete_lifetime': "0",
|
|
||||||
'sync_gab_realtime': "no",
|
|
||||||
'user_plugin_config': "/tmp/kopano/ldap.cfg",
|
|
||||||
'user_plugin': "ldap"
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
7
core/defaultconfigs/spooler.py
Normal file → Executable file
7
core/defaultconfigs/spooler.py
Normal file → Executable file
@ -1,13 +1,12 @@
|
|||||||
import os
|
#!/usr/bin/env python3
|
||||||
import kcconf
|
import kcconf
|
||||||
|
|
||||||
# Component specific configurations
|
# Component specific configurations
|
||||||
kcconf.configkopano({
|
kcconf.configkopano({
|
||||||
r"/tmp/kopano/spooler.cfg":
|
r"/tmp/kopano/spooler.cfg":
|
||||||
{
|
{
|
||||||
'log_file': "-",
|
# Certain configuration can be pre-defined at startup:
|
||||||
'log_level': "4",
|
#'log_level': "4",
|
||||||
'tmp_path': "/tmp/spooler/"
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ mkdir -p /tmp/"$SERVICE_TO_START" /var/run/kopano
|
|||||||
# TODO is this still required now that we won't modify configuration mounted to /etc/kopano?
|
# TODO is this still required now that we won't modify configuration mounted to /etc/kopano?
|
||||||
if [ "${DISABLE_CONFIG_CHANGES}" == false ]; then
|
if [ "${DISABLE_CONFIG_CHANGES}" == false ]; then
|
||||||
echo "Configure core service '$SERVICE_TO_START'" | ts
|
echo "Configure core service '$SERVICE_TO_START'" | ts
|
||||||
/usr/bin/python3 /kopano/"$SERVICE_TO_START".py
|
/kopano/"$SERVICE_TO_START".py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ensure removed pid-file on unclean shutdowns and mounted volumes
|
# ensure removed pid-file on unclean shutdowns and mounted volumes
|
||||||
|
@ -60,21 +60,29 @@ services:
|
|||||||
- KCCONF_LDAP_LDAP_BIND_USER=${LDAP_BIND_DN}
|
- KCCONF_LDAP_LDAP_BIND_USER=${LDAP_BIND_DN}
|
||||||
- KCCONF_LDAP_LDAP_SEARCH_BASE=${LDAP_SEARCH_BASE}
|
- KCCONF_LDAP_LDAP_SEARCH_BASE=${LDAP_SEARCH_BASE}
|
||||||
- KCCONF_LDAP_LDAP_URI=${LDAP_SERVER}
|
- KCCONF_LDAP_LDAP_URI=${LDAP_SERVER}
|
||||||
|
- KCCONF_SERVER_ATTACHMENT_PATH=/kopano/data/attachments
|
||||||
- KCCONF_SERVER_COREDUMP_ENABLED=no
|
- KCCONF_SERVER_COREDUMP_ENABLED=no
|
||||||
- KCCONF_SERVER_ENABLE_SSO=yes
|
- KCCONF_SERVER_ENABLE_SSO=yes
|
||||||
- KCCONF_SERVER_KCOIDC_INSECURE_SKIP_VERIFY=${INSECURE}
|
- KCCONF_SERVER_KCOIDC_INSECURE_SKIP_VERIFY=${INSECURE}
|
||||||
- KCCONF_SERVER_KCOIDC_ISSUER_IDENTIFIER=https://${FQDN}
|
- KCCONF_SERVER_KCOIDC_ISSUER_IDENTIFIER=https://${FQDN}
|
||||||
|
- KCCONF_SERVER_LOG_LEVEL=3
|
||||||
- KCCONF_SERVER_MYSQL_DATABASE=${MYSQL_DATABASE}
|
- KCCONF_SERVER_MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
- KCCONF_SERVER_MYSQL_HOST=${MYSQL_HOST}
|
- KCCONF_SERVER_MYSQL_HOST=${MYSQL_HOST}
|
||||||
- KCCONF_SERVER_MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
- KCCONF_SERVER_MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||||
- KCCONF_SERVER_MYSQL_PORT=3306
|
- KCCONF_SERVER_MYSQL_PORT=3306
|
||||||
- KCCONF_SERVER_MYSQL_USER=${MYSQL_USER}
|
- KCCONF_SERVER_MYSQL_USER=${MYSQL_USER}
|
||||||
- KCCONF_SERVER_PROXY_HEADER=* # delete line if webapp is not behind reverse proxy
|
- KCCONF_SERVER_PROXY_HEADER=* # delete line if webapp is not behind reverse proxy
|
||||||
|
- KCCONF_SERVER_SERVER_LISTEN_TLS=0.0.0.0:237
|
||||||
|
- KCCONF_SERVER_SERVER_LISTEN=0.0.0.0:236
|
||||||
- KCCONF_SERVER_SERVER_NAME=Kopano
|
- KCCONF_SERVER_SERVER_NAME=Kopano
|
||||||
- KCCONF_SERVER_SERVER_SSL_CA_FILE=/kopano/ssl/ca.pem
|
- KCCONF_SERVER_SERVER_SSL_CA_FILE=/kopano/ssl/ca.pem
|
||||||
- KCCONF_SERVER_SERVER_SSL_KEY_FILE=/kopano/ssl/kopano_server.pem
|
- KCCONF_SERVER_SERVER_SSL_KEY_FILE=/kopano/ssl/kopano_server.pem
|
||||||
|
- KCCONF_SERVER_SOFTDELETE_LIFETIME=0
|
||||||
- KCCONF_SERVER_SSLKEYS_PATH=/kopano/ssl/clients
|
- KCCONF_SERVER_SSLKEYS_PATH=/kopano/ssl/clients
|
||||||
|
- KCCONF_SERVER_SYNC_GAB_REALTIME=no
|
||||||
- KCCONF_SERVER_SYSTEM_EMAIL_ADDRESS=${POSTMASTER_ADDRESS}
|
- KCCONF_SERVER_SYSTEM_EMAIL_ADDRESS=${POSTMASTER_ADDRESS}
|
||||||
|
- KCCONF_SERVER_USER_PLUGIN_CONFIG=/tmp/kopano/ldap.cfg
|
||||||
|
- KCCONF_SERVER_USER_PLUGIN=ldap
|
||||||
- KCUNCOMMENT_LDAP_1=${KCUNCOMMENT_LDAP_1}
|
- KCUNCOMMENT_LDAP_1=${KCUNCOMMENT_LDAP_1}
|
||||||
- SERVICE_TO_START=server
|
- SERVICE_TO_START=server
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
@ -192,9 +200,14 @@ services:
|
|||||||
- kopanosocket/:/run/kopano
|
- kopanosocket/:/run/kopano
|
||||||
- kopanossl/:/kopano/ssl
|
- kopanossl/:/kopano/ssl
|
||||||
environment:
|
environment:
|
||||||
|
- DEFAULT_PLUGIN_PUBS_SECRET_KEY_FILE=/kopano/ssl/kapid-pubs-secret.key
|
||||||
- KCCONF_KAPID_INSECURE=${INSECURE}
|
- KCCONF_KAPID_INSECURE=${INSECURE}
|
||||||
|
- KCCONF_KAPID_LISTEN=0.0.0.0:8039
|
||||||
- KCCONF_KAPID_LOG_LEVEL=DEBUG
|
- KCCONF_KAPID_LOG_LEVEL=DEBUG
|
||||||
|
- KCCONF_KAPID_LOG_LEVEL=info
|
||||||
- KCCONF_KAPID_OIDC_ISSUER_IDENTIFIER=https://${FQDN}
|
- KCCONF_KAPID_OIDC_ISSUER_IDENTIFIER=https://${FQDN}
|
||||||
|
- KCCONF_KAPID_PLUGIN_GRAPI_SOCKET_PATH=/var/run/kopano/grapi
|
||||||
|
- KCCONF_KAPID_PLUGIN_KVS_DB_DATASOURCE=/kopano/data/kapi-kvs/kvs.db
|
||||||
- SERVICE_TO_START=kapi
|
- SERVICE_TO_START=kapi
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
env_file:
|
env_file:
|
||||||
@ -242,8 +255,10 @@ services:
|
|||||||
- kopanosocket/:/run/kopano
|
- kopanosocket/:/run/kopano
|
||||||
- kopanossl/:/kopano/ssl
|
- kopanossl/:/kopano/ssl
|
||||||
environment:
|
environment:
|
||||||
|
- KCCONF_DAGENT_LMTP_LISTEN=0.0.0.0:2003
|
||||||
- KCCONF_DAGENT_LOG_LEVEL=3
|
- KCCONF_DAGENT_LOG_LEVEL=3
|
||||||
- KCCONF_DAGENT_SSLKEY_FILE=/kopano/ssl/kopano_dagent.pem
|
- KCCONF_DAGENT_SSLKEY_FILE=/kopano/ssl/kopano_dagent.pem
|
||||||
|
- KCCONF_DAGENT_TMP_PATH=/tmp/dagent/
|
||||||
- SERVICE_TO_START=dagent
|
- SERVICE_TO_START=dagent
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
env_file:
|
env_file:
|
||||||
@ -270,6 +285,7 @@ services:
|
|||||||
- KCCONF_SPOOLER_LOG_LEVEL=3
|
- KCCONF_SPOOLER_LOG_LEVEL=3
|
||||||
- KCCONF_SPOOLER_SMTP_SERVER=mail
|
- KCCONF_SPOOLER_SMTP_SERVER=mail
|
||||||
- KCCONF_SPOOLER_SSLKEY_FILE=/kopano/ssl/kopano_spooler.pem
|
- KCCONF_SPOOLER_SSLKEY_FILE=/kopano/ssl/kopano_spooler.pem
|
||||||
|
- KCCONF_SPOOLER_TMP_PATH=/tmp/spooler/
|
||||||
- SERVICE_TO_START=spooler
|
- SERVICE_TO_START=spooler
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
env_file:
|
env_file:
|
||||||
@ -291,8 +307,10 @@ services:
|
|||||||
- kopanosocket/:/run/kopano
|
- kopanosocket/:/run/kopano
|
||||||
- kopanossl/:/kopano/ssl
|
- kopanossl/:/kopano/ssl
|
||||||
environment:
|
environment:
|
||||||
|
- KCCONF_GATEWAY_IMAP_LISTEN=0.0.0.0:143
|
||||||
- KCCONF_GATEWAY_LOG_LEVEL=3
|
- KCCONF_GATEWAY_LOG_LEVEL=3
|
||||||
- KCCONF_GATEWAY_SERVER_SOCKET=http://kopano_server:236/
|
- KCCONF_GATEWAY_SERVER_SOCKET=http://kopano_server:236/
|
||||||
|
- KCCONF_GATEWAY_TMP_PATH=/tmp/gateway/
|
||||||
- SERVICE_TO_START=gateway
|
- SERVICE_TO_START=gateway
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
env_file:
|
env_file:
|
||||||
@ -314,6 +332,8 @@ services:
|
|||||||
- kopanosocket/:/run/kopano
|
- kopanosocket/:/run/kopano
|
||||||
- kopanossl/:/kopano/ssl
|
- kopanossl/:/kopano/ssl
|
||||||
environment:
|
environment:
|
||||||
|
- KCCONF_ICAL_ICAL_LISTEN=0.0.0.0:8080
|
||||||
|
- KCCONF_ICAL_LOG_LEVEL=3
|
||||||
- KCCONF_ICAL_SERVER_SOCKET=http://kopano_server:236/
|
- KCCONF_ICAL_SERVER_SOCKET=http://kopano_server:236/
|
||||||
- SERVICE_TO_START=ical
|
- SERVICE_TO_START=ical
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
@ -338,6 +358,7 @@ services:
|
|||||||
- kopanossl/:/kopano/ssl
|
- kopanossl/:/kopano/ssl
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_TO_START=monitor
|
- SERVICE_TO_START=monitor
|
||||||
|
- KCCONF_MONITOR_LOG_LEVEL=3
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
env_file:
|
env_file:
|
||||||
- kopano_monitor.env
|
- kopano_monitor.env
|
||||||
@ -361,6 +382,8 @@ services:
|
|||||||
- kopanossl/:/kopano/ssl
|
- kopanossl/:/kopano/ssl
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_TO_START=search
|
- SERVICE_TO_START=search
|
||||||
|
- KCCONF_SEARCH_LOG_LEVEL=3
|
||||||
|
- KCCONF_SEARCH_INDEX_PATH=/kopano/data/search/
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
env_file:
|
env_file:
|
||||||
- kopano_search.env
|
- kopano_search.env
|
||||||
|
@ -91,9 +91,14 @@ services:
|
|||||||
- kopanosocket/:/run/kopano
|
- kopanosocket/:/run/kopano
|
||||||
- kopanossl/:/kopano/ssl
|
- kopanossl/:/kopano/ssl
|
||||||
environment:
|
environment:
|
||||||
|
- DEFAULT_PLUGIN_PUBS_SECRET_KEY_FILE=/kopano/ssl/kapid-pubs-secret.key
|
||||||
- KCCONF_KAPID_INSECURE=${INSECURE}
|
- KCCONF_KAPID_INSECURE=${INSECURE}
|
||||||
|
- KCCONF_KAPID_LISTEN=0.0.0.0:8039
|
||||||
- KCCONF_KAPID_LOG_LEVEL=DEBUG
|
- KCCONF_KAPID_LOG_LEVEL=DEBUG
|
||||||
|
- KCCONF_KAPID_LOG_LEVEL=info
|
||||||
- KCCONF_KAPID_OIDC_ISSUER_IDENTIFIER=https://${FQDN}
|
- KCCONF_KAPID_OIDC_ISSUER_IDENTIFIER=https://${FQDN}
|
||||||
|
- KCCONF_KAPID_PLUGIN_GRAPI_SOCKET_PATH=/var/run/kopano/grapi
|
||||||
|
- KCCONF_KAPID_PLUGIN_KVS_DB_DATASOURCE=/kopano/data/kapi-kvs/kvs.db
|
||||||
- SERVICE_TO_START=kapi
|
- SERVICE_TO_START=kapi
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user