Show HN: Pooshit – Sync local code to remote Docker containers
44 points by marktolson 5 hours ago
Pronounced Push-It....
I'm a lazy developer for the most part, so this is for people like me. Sometimes I just want my local code running in live remote containers quickly, without building images and syncing to cloud docker repos or setting up git workflows or any of the other draining ways to get your code running remotely.
With pooshit (and a simple config file), you can simply push your local dev files to a remote folder on a VM then automatically remove relevant running containers, then build and run an updated container with one command line call.
It works well with reverse proxies like nginx or caddy as you can specify the docker run arguments in the pooshit_config files.
I understand what you are trying to do but you should checkout dokploy or coolify.
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.