K
K
kovalr2018-02-15 15:11:17
linux
kovalr, 2018-02-15 15:11:17

owncloud docker how to configure bundle certificate in docker container?

Owncloud suggests running the service using a compose file
https://raw.githubusercontent.com/owncloud-docker/...
My SSL certificate uses a chain of intermediates to work correctly.
To make everything work, I add the SSLCertificateChainFile parameter to the Apache configuration that runs in the container.
After restarting the host system, the settings are lost. And this is understandable.
I tried to mount in compose
- ./apache2/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
option works until the system is rebooted.
Here is the official response from owncloud DevOps
https://github.com/owncloud-docker/server/issues/43

You can simply mount the host file /etc/ssl/certs/ca-certificates.crt sich includes your ca into the same path within the container and it should work. We are doing it exactly like that internally.

It's not entirely clear what he's suggesting. Add your chain to /etc/ssl/certs/ca-certificates.crt on the server? So the problem is on the client side. Even if I add to /etc/ssl/certs/ca-certificates.crt which is in the container with Apache, then it also needs to be mounted somehow.
Actually a question. How to forward /etc/apache2/sites-enabled/000-default.conf from the docker to the host machine so that the settings do not crash when the system is rebooted? Is it possible to do this by tweaking docker-compose ? Or do you need to create your own cloud container (your own Dockerfile, specifying the mount option), build it, and only then run it with docker-compose ?
Who as solves a problem with intermediate certificates?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Bodrov, 2018-02-15
@jenki

How to forward /etc/apache2/sites-enabled/000-default.conf from the docker to the host machine so that the settings do not crash when the system is rebooted?
Write it in the entrypoint.sh file so that it pulls up the file after a reboot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question