top | item 35756007

(no title)

simo7 | 2 years ago

You can ship your local docker context to a remote host and build/run your containers there. All the docker commands you typically run locally you can run on the remote host.

https://www.docker.com/blog/how-to-deploy-on-remote-docker-h...

discuss

order

emkrawiec|2 years ago

thanks! I was a little bit confused at first because I've always taken docker compose as a tool mainly for spinning up dev environments. But I read mentioned article and it looks perfectly valid for single host deployments. One thing which bothered me is how i manage container versions usually made with hashes but all you need is to either make sth like a compose template like file which would have a version placeholder or specify production compose configuration on top of the default one.

https://stackoverflow.com/a/71194294 https://docs.docker.com/compose/production/