Nextcloud

installation and running next cloud with ssl:

  1. Generate letsencrypt certificate
  2. Build an image to run with generated certificate
  3. 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

Leave a Reply

Your email address will not be published. Required fields are marked *