The original post: /r/selfhosted by /u/thefrenchrist on 2024-12-31 04:23:17.
Hi fellow self-hosters,
A little background before I start asking for advices: I am a french software engineer transitioning to web development (mainly svelte but also angular). I started self-hosting 4 years ago with basic services like Vaultwarden, Home Assistant, Portainer, Nextcloud and a media stack based on Jellyfin and *arrs.
My setup is quite simple: an old but powerful computer “borrowed” from my old job running Debian. Using VSCode with the remote explorer, I have a folder for each Docker stack I need (~around 20 now) on root. Then inside each folder, there’s a Docker Compose file and a folder mounted as a volume if needed.
As I am now a freelance web developer, I sometimes need to mimic a production environment before deploying for my clients (I sometimes even deploy onto it for personal projects).
What I usually do is code on my personal machine, and when I want to test or deploy, I copy the project folder onto my server, build and deploy it using some Node server container, and then use Nginx Proxy Manager to add it to my subdomains.
I wonder if there is a more optimal solution? I tried to look into Gitea act runner (I have a Gitea container running), Drone CI, and Coolify but I don’t believe they match my needs.
The ideal solution, if it is possible, would be coding on my local machine, pushing the code onto a repo (ideally my Gitea instance), and then it would trigger a Gitea action, mounting a container with the code, flagging it, deploying it, and I would just need to handle the npm part to link it to my domains.
I am curious about your thoughts on my setup and what advices you could give me. I am open about advices on other subjects too, not only the deployment part.