logoalt Hacker News

tontonytoday at 11:29 AM2 repliesview on HN

Compose is great, but a couple things always created friction for me when using it for non-local setups:

* Lack of a user-friendly way of managing a Docker Compose installation on a remote host. SSH-forwarding the docker socket is an option, but needs wrappers and discipline.

* Growing beyond one host (and not switching to something like Kubernetes) would normally mean migrating to Swarm, which is its own can of worms.

* Boilerplate needed to expose your services with TLS

Uncloud [1] fixed all those issues for me and is (mostly) Compose-compatible.

[1] https://github.com/psviderski/uncloud/


Replies

chatmastatoday at 12:58 PM

For remote installation, use the `docker context` command. You create a context with a named SSH host and then it connects via SSH to that host (as configured in your local ssh_config) and uses its docker daemon. Everything works flawlessly apart from local bind mounts (for obvious reasons).

If you remember `docker machine`, this is basically the modern version of that.

esperenttoday at 11:35 AM

> Lack of a user-friendly way of managing a Docker Compose installation on a remote host

I've been using portainer for years, it's decent.