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?

You are viewing a single thread.
View all comments
4 points

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.

permalink
report
reply
2 points

If I’m not mistaken NGINX Proxy Manager does all of that too, doesn’t it?

permalink
report
parent
reply
1 point

You could very well be right! I’m afraid I don’t know, I’ve not used Proxy Manager. When I switched from nginx to traefik a good few years ago it definitely didn’t exist, but I’ve not kept up with it since.

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply

Self Hosted - Self-hosting your services.

!selfhost@lemmy.ml

Create 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!

Community stats

  • 89

    Monthly active users

  • 380

    Posts

  • 2.6K

    Comments