I have a handful of NodeJS websites that are almost ready to be deployed publicly. All of them are very simple sites which I don’t expect to get much traffic.

I’m thinking I could make a docker container for each website using the NodeJS docker image, then route them using traefik or nginx. This way there’s a good degree of separation between the sites and everything will be organized and easy to backup/transfer around if needed.

Is it a decent plan? Got any better ideas or tips?

Yep sounds very reasonable to me. I’d personally recommend traefik over nginx, it’s a lot easier to get up and running quickly and integrates natively with Docker. Just slap some labels on your container and boom it’s live. Plus, traefik can be configured to easily get letsencrypt certs for your domain(s) automatically, which is really nice.

Very true. Traefik is pretty awesome. Thanks for the input!

Self Hosted - Self-hosting your services.
!selfhost@lemmy.ml
Create a post

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

  • No harassment
  • crossposts from c/Open Source & c/docker & related may be allowed, depending on context
  • Video Promoting is allowed if is within the topic.
  • No spamming.
  • Stay friendly.
  • Follow the lemmy.ml instance rules.
  • Tag your post. (Read under)

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

  • Lemmy doesn’t have tags yet, so mark it with [Question], [Help], [Project], [Other], [Promoting] or other you may think is appropriate.

Cross-posting

If you see a rule-breaker please DM the mods!

  • 1 user online
  • 1 user / day
  • 1 user / week
  • 12 users / month
  • 36 users / 6 months
  • 1 subscriber
  • 161 Posts
  • 283 Comments
  • Modlog