On Linux Mint 21, on my own hardware, I've:
- installed docker & docker desktop.
- created an image & container for owncloud that is working.
- created a maridaDB image & container that's working.
- configured owncloud to work with mariadb successfully.
- can successfully access my owncloud instance over the internet on port 80.
- Stopped Apache on the host since the docker image doesn't need it and Apache was using port 80.
I'm looking for someone that knows how to configure LetsEncrypt with owncloud running in docker on their own hardware. <-- Specifically that setup.
I've watched dozens of YouTube videos and have been to dozens of websites, blogs, & Q&As and not a single one of them gives instructions for installing LetsEncrypt's certbot in a docker container for owncloud on your own hardwar. None of the instructions I've found work.
I've tried more things than anyone would care to read through. Here's one, just as an example that doesn't work, but is probably the closest thing to my setup, but it's on a hosted environment and mine's running on my own hardware:
Starting at 3:40 into the video... https://www.youtube.com/watch?v=g0mS1z8Hmhw
sudo nextcloud.enable-https lets-encrypt
This doesn't work either on the host nor in the terminal in the container (no one ever explains whether to execute these commands on the host or in the container's terminal, BTW). Earlier in the video, whatever docker image he's using, he says it comes with lets-encrypt already in it. The official owncloud docker image does not and I'm using the official owncloud docker image.
When I run it on the host, I get:
sudp: nextcloud.enable-https: command not found
When I run it in the owncloud docker image's terminal, I get:
/bin/sh: 9: sudo: not found
When I run it in the owncloud docker image's terminal WITHOUT sudo, I get:
/bin/sh: 11: nextcloud.enable-https: not found
I've been at this for 3 weeks (mostly on the weekends) and am making no progress. Any help would be greatly appreciated.
I FINALLY figured it all out and got EVERYTHING up and running. I'm writing up docs which I'll share here when I'm done. In the meantime, here are answers to the bigger questions:
Big Picture of how the completed system will function:
Big Picture of setup process: