Hi guys, what do you think about this: GitHub - fairking/we_are_the_people: Moved to https://fairking.mooo.com:3001/fairking/we_are_the_people
Plese let me know if you disagree with something.
Please let me know what you are truely think about it.
It’s cool that you’re using Fedora Linux for this. Is there any specific feedback you’re looking for?
As general feedback, I think this setup is more complicated and fragile than it should be. If you install Nextcloud as docker container you are up and running in minutes.
Also, your container can easily be moved to another GNU/Linux and will survive package and distro upgrades (which happen a lot with Fedora). With an install of Nextcloud the way you did it, I would be afraid package updates or new Fedora releases break any of the dependencies.
For a docker container of Nextcloud you need three commands and a text file (“docker compose file”)
sudo dnf install moby-engine docker-compose
sudo systemctl enable docker
Then create compose file and save it as `docker-compose.yml`
version: "3"
services:
nextcloud:
image: nextcloud:latest
restart: unless-stopped
ports:
- 80:80
environment:
- MYSQL_HOST=mysql
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=nextcloud
volumes:
- nextcloud:/var/www/html
mysql:
image: mysql:8.0
restart: unless-stopped
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=nextcloud
- MYSQL_ROOT_PASSWORD=nextcloud
volumes:
- mysql:/var/lib/mysql
volumes:
mysql:
nextcloud:
Then run
docker-compose up -d
and everything works.
Sources:
- Docker and Fedora 35 - Fedora Magazine
- https://www.cloudsavvyit.com/12476/how-to-self-host-a-collaborative-cloud-with-nextcloud-and-docker/ (no guarantees for what’s written here, haven’t tested it, but it looks good).
Thank you. Nice exaple. Would it be complicated with setting up the DDNS and pointing at the docker instance? Does docker consume more memory? What is about redis cache? Cron? Different hard drive for a file storage? As I know the docker hardly encapsulated.
I think it is really cool.
Thanks for sharing your guide, which covers several interesting topics.
Easy, understandable, nailed down to the basic things. Also good for beginners.
I for myself however would use another dyndns provider, like https://desec.io/
However that’s up to everyones taste.
Using docker is a very nice way to shell your applications.
But you would need to customize your container.
I’m not sure if this is so easy to achieve.
Edit
Also, wouldn’t dockers images needed to be created new every update? So you either would need to create your own new docker container every time there is an update. Or you would need to download a newer version and customize it in order to get your certificate working.
Edit
I see that they suggest a ssl terminating reverse proxy to address the ssl certificate problem.
Stays the problem that you need to trust the container creators. Or to take the time and create your own docker images. (There already has been raw occasions where bitcoin miner has been part of a docker image downloaded from the internet.)
Thank you guys for a fair feedback. I have added https://desec.io/ as well. Will improve the manual if I find some bugs or issues.