Show HN: Pooshit – Sync local code to remote Docker containers
It uploads your whole local docker context, source code and all, builds the image on the remote server and up's the container(s) all with a single command. I use this all the time when deploying simple services to avoid all of the complexity of registries etc.
docker -H ssh://remote compose up -dLegal came back saying that it was "highly unorthodox, but approved for use"
Notes from OSI rejection board meeting
> It's no different from dedication to the public domain.
Names can be troublesome though, badly named products get caught in spam filters, or blocked in some firewall blacklist.
For anyone who's interested in proper bidirectional sync check out Mutagen.[0]
You push to github, github action builds it and hits dokploy webhook and it pulls your github code and build and deploy on that server.
This is more reliable and industry way. What you are doing requires same amount of time to deploy and requires manual intervention every time.
For once i thought you were moving code to server and then you just restarted container and it worked without having to build. I have done it in the past due to some unique requirements where dependencies are in docker image and code is copied from local to server and docker image took code from server on start.
Additionally there are a million different and better ways to deploy services, this suits the use case I described.