installation and running next cloud with ssl:
- Generate letsencrypt certificate
- Build an image to run with generated certificate
- Run the container
Generate SSL certificate
certbot -d <DOMAIN_NAME> –manual –preferred-challenges dns certonly
Build the Image
FROM nextcloud:latest COPY setssl.sh /usr/local/bin/ RUN /usr/local/bin/setssl.sh admin@domain.tld nextcloud.domain.tld
ref:
https://help.nextcloud.com/t/howto-running-nextcloud-over-self-signed-https-ssl-tls-in-docker/101973
Run Nextcloud container
docker run -d \ -p 8080:443 \ -v /root/cert:/etc/ssl/nextcloud \ --name nxc_ssl nxc_ssl
Install and enable nextcloud talk