3 ms·
I use a mix of ssh'in in and running my services as docker images / docker-compose multi images. My "deploy script" is simply a Github CI/CD action that builds
by fb03 3y ago
I use a mix of ssh'in in and running my services as docker images / docker-compose multi images.
My "deploy script" is simply a Github CI/CD action that builds the new docker images, pushes them to the GCR, and then logs into my VPS via SSH, pulls the images in, and restarts services. Works pretty good for small scale deployments and I get all the configuration and pinned versioning stuff into the images while not needing to go fullscale kubernetes which seems imho overkill for a single vps setup.
In the 'outside' real VPS the only thing I have, if those service need HTTP(s) ingress, is set up a simple ssl enabled webserver to reverse proxy shit back to the containers, and for that I use Caddy which auto handles generating ssl certs for your internet facing domains etc.