43
submitted 2 years ago* (last edited 2 years ago) by Mountain_Mike_420@lemmy.ml to c/selfhosted@lemmy.world

Should I be learning docker compose instead of relying on dockStarter to manage my containers? I got portainer up, should I just use that to manage my stack?

I’m committed this summer to finally learning docker. I’m on day 3 and the last puzzle piece is being able to access qbittorrent locally while running the container through the vpn.

you are viewing a single comment's thread
view the rest of the comments
[-] peregus@lemmy.world 9 points 2 years ago

I would never deploy Compose in any kind of production environment.

May I ask you why?

[-] just_another_person@lemmy.world 5 points 2 years ago

Aside from the myriad issues it has on its own, the easiest answer is: it doesn't scale on multiple machines and instances.

Example: I have 10 services in a compose file, and I need each service to scale independently across multiple servers. Which is easier, more reproducible, and reliable: controlling the docker compose state across many instances, or communicating with a central management service with one command to do it all for me?

[-] mhzawadi@lemmy.horwood.cloud 6 points 2 years ago

What you need then is swarm compose, that can run any service in global mode (in all nodes all the time) or scale mode.

[-] just_another_person@lemmy.world 5 points 2 years ago

No, then you're just orchestrating the service level stuff, and nothing else. Docker's tools will never compare to cluster scaling efforts where the entire horizontal layer to be scaled can be orchestrated from the instance up to containers.

[-] mhzawadi@lemmy.horwood.cloud 1 points 2 years ago

not sure I understand you, in docker swarm your containers are started on n number of works from a single compose file on a manager. you can add any number of work nodes to scale your service as needed

[-] just_another_person@lemmy.world 2 points 2 years ago* (last edited 2 years ago)

N number of EXISTING nodes. Proper container orchestration platforms handle all the provisioning of instances, scaling of services, IAM...etc.

Docker Swarm (and all Docker tools) only handle...Docker.

Swarm is another thing I would never recommend in production.

[-] mhzawadi@lemmy.horwood.cloud 0 points 2 years ago

That's not container orchestration, that's infrastructure orchestration. Depending on your use case docker swarm could just the right tool for the job.

You've been using Aws and they will happily let you add more nodes to your container runner of choice

[-] just_another_person@lemmy.world 1 points 2 years ago

No, it's container orchestration. As-in "I orchestrate all the scaling needed to run and scale the containers".

[-] towerful@programming.dev 3 points 2 years ago

Sure, but what you are describing is the problem that k8s solves.
I've run plenty of production things from docker compose. Auto scaling hasn't been a requirement, and HA was built into the application (so 2 separate VMs running the compose stack). Docker was perfect for it, and k8s would've been a sledgehammer.

[-] just_another_person@lemmy.world 1 points 2 years ago

K8s isn't the only container orchestration platform out there, it's just what is the widely used flavor right now. Any of the micro clusters would still be better than the Docker tools, for a multitude of reasons, and if someone is learning about this right now, they might as well put the effort forth to get familiar.

I've never seen a large scale Compose or Swarm cluster, and wouldn't be working for a team who ran such things. Alternatives would also be: ECS (if on AWS), Openshift, Rancher, and most other cloud platforms have some form of their own that handles provisioning, as well is IAM/RBAC seamless integrations, and other networking integrations for whatever platform.

this post was submitted on 03 Jun 2024
43 points (97.8% liked)

Selfhosted

62903 readers
492 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS