-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
58 lines (51 loc) · 1.61 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023 Univention GmbH
---
version: "3.9"
services:
dovecot-connector:
platform: "linux/amd64"
build:
context: "."
dockerfile: "docker/dovecot-connector/Dockerfile.souvap"
args:
- "version=1.0.2"
environment:
# Variables for Univention Directory Listener
LDAP_HOST: "domain.example.org"
LDAP_PORT: 389
LDAP_BASE_DN: "dc=example,dc=org"
LDAP_HOST_DN: "cn=domain,cn=dc,cn=computers,dc=example,dc=org"
NOTIFIER_SERVER: "domain.example.org"
DEBUG_LEVEL: 5
# Whenever to start encryption and validate certificates.
# Chose from "off", "unvalidated" and "secure".
TLS_MODE: "off"
# Password is read from `secret/ldap.secret`
#LDAP_PASSWORD: "univention"
#LDAP_PASSWORD_FILE: "/run/secrets/ldap_secret"
# Cert is read from `ssl/certs/CAcert.pem`
#CA_CERT: "<ca-cert>"
#CA_CERT_FILE: "/run/secrets/ca_cert"
# Variables for Univention Dovecot Connector
DCC_ADM_URI: "localhost"
DCC_ADM_HOST: "127.0.0.1"
DCC_ADM_PORT: "8080"
DCC_ADM_USERNAME: "doveadm"
DCC_ADM_PASSWORD: "4711.UnsecureThisPasswordIs"
DCC_DC_VMAIL_TEMPLATE: "/var/spool/dovecot/private/{domain}/{uuid}"
DCC_ADM_ACCEPTED_EXIT_CODES: "0 2 68 75"
DCC_LOGLEVEL: "DEBUG"
secrets:
- "ca_cert"
- "ldap_secret"
volumes:
- "listener-data:/var/lib/univention-directory-listener/:rw"
secrets:
ca_cert:
file: "ssl/certs/CAcert.pem"
ldap_secret:
file: "secret/ldap.secret"
volumes:
listener-data:
...