-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
110 lines (100 loc) · 2.88 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023-2024 Univention GmbH
---
services:
udm-rest-api:
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-udm-rest/udm-rest-api:${IMAGE_TAG:-latest}
# FIXME: remove once arm64 packages are available at updates.software-univention.de
platform: "linux/amd64"
build:
context: ./docker/udm-rest-api
target: test
ports:
- 9979:9979
env_file: .env.udm-rest-api
secrets:
- machine_secret
volumes:
- type: bind
source: ./tests/base.conf
target: /etc/univention/base.conf
read_only: true
api-client:
profiles:
- test
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-udm-rest/udm-rest-api-python-client:${IMAGE_TAG:-latest}
build:
context: ./docker/udm-rest-api-python-client
platform: "linux/amd64"
working_dir: "/src"
volumes:
- "./:/src/"
pre-commit:
profiles:
- "pre-commit"
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-pre-commit/upx-pre-commit:${IMAGE_TAG:-latest}
volumes:
- type: bind
source: .
target: /code
- type: volume
# pre-commit installs dependencies, having them cached speeds things up
# a lot.
source: pre-commit-cache
target: /cache
test:
profiles:
- "test"
platform: "linux/amd64"
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-udm-rest/testrunner:${IMAGE_TAG:-latest}
build:
context: docker/testrunner
environment:
PYTEST_ADDOPTS: --udm-rest-url=http://udm-rest-api:9979/udm/
volumes:
- type: bind
source: .
target: /app/
ldap-server:
profiles:
- "test"
platform: linux/amd64
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-ldap/ldap-server:latest
build:
context: ../container-ldap/docker/ldap-server
target: final
environment:
DOMAIN_NAME: univention-organization.intranet
LDAP_BASE_DN: dc=univention-organization,dc=intranet
LDAP_CN_ADMIN_PW: "univention"
TLS_MODE: "off"
# FIXME: slapd won't work on linux kernel 6.6
ulimits:
nofile:
soft: 1024
hard: 1024
ports:
- 389:389
volumes:
- ldap-shared-data:/var/lib/univention-ldap/:rw
- type: bind
source: ./tests/base.conf
target: /etc/univention/base.conf
read_only: true
# Environment to build the documentation
docs:
image: docker-registry.knut.univention.de/sphinx:latest
working_dir: /src/docs
volumes:
- ".:/src"
profiles:
- docs
secrets:
ldap_secret:
file: secret/ldap.secret
machine_secret:
file: secret/machine.secret
volumes:
pre-commit-cache:
ldap-shared-data:
...