groupware: fix the 'opencloud-certs' container to set necessary permissions on the files or the opencloud container can't access them

This commit is contained in:
Pascal Bleser
2026-06-16 17:16:48 +02:00
parent 75f062f53d
commit cae2f6ede0

View File

@@ -91,11 +91,18 @@ services:
opencloud-certs:
image: alpine/openssl:latest
command: req -subj '/CN=opencloud.test' -x509 -newkey rsa:4096 -sha256 -days 3650 -batch -nodes -keyout ./certs/ldaps.key -out ./certs/ldaps.crt
environment:
CERTS: /certs
entrypoint: ["/bin/sh", "-c"]
command:
- |
if [ ! -f "$$CERTS/ldaps.key" ]; then
mkdir -p "$$CERTS"
/usr/bin/openssl req -subj '/CN=opencloud.test' -x509 -newkey rsa:4096 -sha256 -days 3650 -batch -nodes -keyout "$$CERTS/ldaps.key" -out "$$CERTS/ldaps.crt"
fi
chmod 666 "$$CERTS"/ldaps.*
volumes:
- ./config/opencloud/certs:/certs:rw
stdin_open: true
tty: true
- ./config/opencloud/certs:/certs
volumes:
opencloud-config: