How to ownCloud with Docker' version 8080 Change 443

Official: https://doc.owncloud.org/server/10.3/admin_manual/installation/docker/
BUT: only ↓
docker with http 8080
How to transform 443?

But, How to change ssl(443), I tried in container modify files:
/etc/apache2/sites-enabled/default.conf
add:
SSLEngine on
SSLCertificateFile /etc/apache2/certs/XXX.crt.pem
SSLCertificateKeyFile /etc/apache2//certs/XXX.key.pem
SSLCertificateChainFile /etc/apache2/certs/XXX.crt.pem
but, restart failure…
I don’t know , I need to do?

It is recommend to use a reverse proxy like Caddy or Traefik. You could also use nginx-proxy with docker-gen.
In order to install a certificate inside the container you would basically have to build a new container based on the official one, where you install the cert and reconfigure apache. Really, that’s just too complicated, so go the reverse proxy route.

1 Like

Hey,

this looks to me like a duplicate of Docker HTTPS deployment.

1 Like