-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
82 lines (72 loc) · 2.06 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
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023 Univention GmbH
---
name: "dev-local"
services:
umc-gateway:
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-umc/umc-gateway:${IMAGE_TAG:-latest}
platform: linux/amd64
ports:
- 8091:80
env_file: .env.umc-gateway
umc-server:
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-umc/umc-server:${IMAGE_TAG:-latest}
platform: linux/amd64
ports:
- 8090:8090
volumes:
- umc-acls:/var/cache/univention-management-console/acls/
- type: bind
source: ./tests/stub_data/base.conf
target: /etc/univention/base.conf
read_only: true
- type: bind
source: ./tests/stub_data/saml-certs
target: /etc/univention/ssl/ucs-6045.univention-organization.intranet
read_only: true
env_file: .env.umc-server
secrets:
- ldap_secret
- machine_secret
test:
profiles:
- test
platform: linux/amd64
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-umc/testrunner:${IMAGE_TAG:-latest}
build:
context: docker/testrunner
environment:
PYTEST_ADDOPTS: --umc-server-url=http://umc-server:8090/
volumes:
- type: bind
source: .
target: /app/
# Environment of the pre-commit linter.
pre-commit:
profiles:
- test
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/container-pre-commit/upx-pre-commit: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
secrets:
ca_cert:
file: ssl/certs/CAcert.pem
cert_pem:
file: ssl/certs/cert.pem
private_key:
file: ssl/certs/private.key
ldap_secret:
file: secret/ldap.secret
machine_secret:
file: secret/machine.secret
volumes:
pre-commit-cache:
umc-acls:
...