I am using Nextcloud with success on an ubuntu server vm. But as my capacity runs out, I have bought a new server where I want only docker containers. So I wanted to migrate to docker with a fresh installation. I will export/import calendar and contacts later. But I am a little bit to supid to get https to run. I have zero experience with nginx, but apache. I was using a self signed certificate on my actual setup and it works just fine.
So this setup with docker compose is working, but of course without SSL. I wanted to enable SSL inside this container, but it failed. I donāt want to use Lets Encrpyt - just want to use another self-signed certificate and run this with Nextcloud. On the other side I have seen the standard docker container does not contain all āadd-onsā or the āfullā installation like ImageMagick. Can you guys share an example how I get a full-installation?
thank you for your quick answer.
The server should only be available inside the local network. I suggest that I need permanent internet access with lets encrpyt to validate the certificate. On the other side, I do not have a domain, so I work with static ip adresses.
Maybe I am wrongā¦
I will have a look on treafic. I am running portainer - awesome container
Hi, is there no way to put this in the compose file, so it is created when the container is started?
Otherwise I need to create my own dockerfile whenever there is an updateā¦
Thanks
no. docker-compose reads the docker composefile and that includes the docker file to create a new image. every time there is a update of next cloud or of the used components (apache, php, etc. pp.). but you have to trigger this.
compose and docker file will remain always the same. only the docker image will be rebuild and started as a new container.
Thank you for your answer. I will have a look into that.
I have tried the lets encrypt solution. without an domain name it is not working. therefore I am still searching for a simple suolutiojn using a self signed certificate. Somewhere I will need to change a config I guessā¦
iām not sure but instead of image: nextcloud:apache you have to use build: where_your_docker_file_is_dir .
about certificates
letsencrypt makes no sense without your own domain. letsencrypt will validate if you are the owner of that domain.so your server has to answer request from a letsencrypt validation server. otherwise you could get a certificate for www.google.com. (there are āofflineā methodes to validate that you are the owner of your domain. but still you need a domain.)
to get your certificate. the following is one example
you may also use the ssl generator
quick howto: you generate once the certificates and use the COPY command in the docker file of your nextcloud image to copy them into this image.
or
you include in your compose file a one time run of the generator and write the certificates into a docker volume shared with the nextcloud image.
and have to change the apache config in the nextcloud image (with a COPY statement) to use the certificates.
I have now build my own docker image based on nextcloud:apache.
Maybe I just needed some time to think about how it works - but I was able to enable SSL and use my āFullā image in docker-compose. I was wondering how much new packages was installed with the āfullā isntallation, it needs about 5 min to build the image.
Thank you so much for your help. Very appreciated.
-IceBoosteR