Hacker News new | ask | show | jobs
by yetanother-1 1016 days ago
Would you prefer this over Traefik for a simple docker-compose setup?
2 comments

I didn’t think I would see traefik and simple in the same sentence.
> a simple docker-compose

Abstraction at it's finest.

Unironically this. After trying Kubernetes, Terraform, Ansible, and various proprietary PaaS config formats, I've grown to love Compose files' simplicity.
Yes, when compared to extreme complexity, compose is simpler. But it's hardly simple.
I'll happily try anything simpler than that if you give me an idea what that might be.

Not trying to be salty or anything – I really think Compose hits the sweet spot of abstraction which is less complex than both the monstrosities I listed and the ad hoc Bash scripts copying code over SSH and restarting services approach (so, the other extremity of declarative v. imperative).

so I guess you are on Docker Swarm?
Actually yeah! A single node is usually enough for me though, but I like the ability to throw in more nodes as needed (more or less painlessly, as long as you properly guard services that need persistent volumes with a label constraint).

Shameless plug: I also make a Docker Swarm dashboard, check it out: https://lunni.dev/

I am on docker swarm, too, and I like it.

Lunni? cool, thank you for sharing it, I'll give it a try

How to navigate the docs? in https://lunni.dev I only reach https://lunni.dev/docs/install/ while I see a lot of good docs https://gitlab.com/lunni/lunni.dev/-/tree/master/docs ...maybe not ready for the website?

Huh, that's weird – probably a bug in my docs pipeline somewhere. Looking into it rn

Edit: custom CSS for the homepage breaks navigation on inner pages on desktop. Should be fine now. Thanks for pointing this out!

What strikes you as difficult with compose files? In fact, I would say it’s the most concise format to describe a desired state of running applications currently available.
Nothing is difficult about them, compose is easy enough that you can grok it in a day.

You saw the lament in my comment though and that speaks a deeper truth.

If WSL took off quick enough we could have had lxc as the main player rather than the bastardisation of lxc that is docker.com

For an open source project they make it incredibly hard to access what are essentially text files for containerisation setups on windows or mac?

https://github.com/docker/hub-feedback/issues/1103

Compose is an open source project entirely separate to hub, though. The compose file specification is versioned separately, and will outlive Docker, probably. So I don’t quite get your criticism?
How are you using compose without docker? They are joined at the hip, criticism of one is criticism of the other.

The days of cheap money are over, it's inevitable that certain SaaS companies will start tightening the screws on their users to match the returns they can get with cash in a bank. I just wish lxc (which docker was built off) got a chance to gain traction. It's miles ahead in DX and sure they serve different functionalities but can be used the same and the network effects can't be understated.

No, that isn't true. Compose can absolutely be used with Docker replacements, and there is no reason you couldn't create an implementation for LXC, for example.