Hey guys, i'm setting up a small homelab and wanted to run a small private discord bot (among other things).
Structure wise, I have a docker.py script that builds and mounts from a list of container names. So far, i've only set up third party services so like openspeedtest, where i can just get the image from docker hub.
I was hoping to host a private discord bot for me and my friends, but i want to keep it "private" in the sense that if i make the homelab repo public, the source code of my private projects is safe. At most there will be some folder called discord bot with a docker file or compose file using env variables. I was wondering if you guys have any suggestions of how you guys might handle deploying this?
The options i can think of so far:
-Dockerhub (I am 90% sure this is the way to go(?), but dockerhub only supports one private repository on the free tier. Are the below alternatives much worse?)
- to have the git repo path for my discord bot as a env variable, and build it in a docker file on my homelab VM. (I assume this is second best option)
- Prebuild the image locally, and send it to my homelab VM via ssh
- Have a completely seperate git repo that my homelab VM references, which holds the source code for my private projects and all the deploy stuff.
Sorry to ask this guys i know its a dumb question, i would have just put the source code on the homelab VM for now and figure it out later, but if i make the repo public i assume the past commits are also public, so hoping to get it right early. I am also quite new to docker and all this 😅 🙏 Thank you very much in advance