this post was submitted on 20 Jul 2023
3 points (100.0% liked)

Self Hosted - Self-hosting your services.

14519 readers
7 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

Important

Cross-posting

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

founded 4 years ago
MODERATORS
 

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 comment's thread
view the rest of the comments
[–] Hundun@beehaw.org 4 points 2 years ago

I recommend looking into docker-compose. That way you can refer to an nginx image along with your services in one single YAML config.