News for hackers. Stuff that matters.
Re:From Go on EC2 to Fly.io: +fun, −$9/mo by tuukkah on Monday February 27, 2023 @01:40AM (#34953740)
To keep CI and hosting decoupled, your CI can push fresh images to a docker registry, and your deployment can poll for updated images. An easy way to achieve this is to add the Watchtower container to your compose files: https://containrrr.dev/watchtower/running-multiple-instances...
Re:From Go on EC2 to Fly.io: +fun, −$9/mo by mtlynch on Monday February 27, 2023 @02:03AM (#34953851)
I don't think that's a good solution in general unless you're confident that all of your deployments will use Docker Compose.

About 1/3 of my deployments are just static sites, and the rest all fit into a single Docker container, so integrating Compose would be a big increase in complexity.

Re:From Go on EC2 to Fly.io: +fun, −$9/mo by tuukkah on Monday February 27, 2023 @02:44AM (#34954036)
I'd say Compose simplifies even your single-container deployments, as the compose file is the single place to set your env variables, port forwards etc.

That being said, you can use Watchtower without Compose. It's enough to run

  docker run -d -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower