Comment on CI/CD question: How do you actually deploy a self-hosted web app that runs in docker (preferably using Forgejo actions)?

nykula@piefed.social ⁨1⁩ ⁨day⁩ ago

I have podman-compose on host. A single compose.yaml declares all images that should run and depend on each other. Then there’s a single .env file for config. A systemd user service runs podman-compose up with that .env file. A cron job periodically runs podman-compose pull, stops the systemd service, backups volumes and starts the systemd service back again. For the web app I write, its CI builds a Docker image and pushes it to the Codeberg registry, from which podman-compose picks it up. It’s very far from instant deploy, but works for my needs.

original
Sort:hotnewtop