Live data from Hacker News

Self-Hosting like it's 2025

kiranet.org

221–230 of 240 posts

Re: Self-Hosting like it's 2025

#221
As a non-developer, I find it difficult to step into the self-hosting world. What I recommend for people like me is the service PikaPods [1], which takes care of the hard part of self-hosting.

I have now switched from some SaaS products to self-hosted alternatives:

- Feed reader: Feedly to FreshRSS.

- Photo management/repository: Google Photos to Imich or Imgich (don't remember).

- Bookmarks: Mozilla's Pocket to Hoarder.

And so far, my experience has been simple and awesome!

[1] https://www.pikapods.com

Re: Self-Hosting like it's 2025

#222

Earlier quoted context omitted.

Yes, I have been using it and really enjoying it for deploying web apps. So far I have deployed web apps using: * fastapi (python) * Django ninja (python) * ghost cms (node) I have been writing up my thoughts (and an example): https://andrewperkins.com.au/kamal/ The ability to deploy to both cloud servers and on-premises is a big win as I often work on projects that have a mix of both. As the sibling comment says, it…

Great! Are you also deploying DB servers or any other kind of additional servers that are dependencies of those webapps?

Yes, I am deploying mysql with ghost

``` accessories:

  db:
    image: mysql:8.0
    host: 170.64.156.161
    env:
      secret:
        - MYSQL_ROOT_PASSWORD
    options:
      restart: always
    directories:
      - data:/var/lib/mysql
```

For my other services I am just using sqlite combined with a volume for persistence (managed by kamal)

Re: Self-Hosting like it's 2025

#223
post #51

I love the idea of self-hosting, especially since I keep a number of very tiny websites/projects going at any given time, so resources would not really be too much of an issue for me. What stops me is security. I simply do not know enough about securing a self-hosted site on real hardware in my home and despite actively continuing to learn, it seems like the more I learn about it, the more questions I have. My identi…

I think a normal patched Debian/Ubuntu with ufw rule for port 80/443 and 22, ssh certificate auth only and a simple nginx configuration is still very safe.

Of course there can be security issue on your webserver as well, but for a simple site this setup is learnable in an hour or two and you are ready to go.

You can hook that up on a pie attached to your router or pay a bit to have it hosted somewhere. Domain is perhaps 2-5$ and an TLS cert you can get from Let's Encrypt.

No idea how to put everything into a container that it makes sense. I just run this quite often on small hosted machines elsewhere. I just install everything manually because it takes 5 minutes if you have done it before.

Re: Self-Hosting like it's 2025

#224
post #154
post #108

Earlier quoted context omitted.

Don't expose anything to the Internet. Use a tunneling tool (Tailscale et al) or VPN

You'll have a hard time hosting websites/projects meant for the public to view, if you don't allow public internet traffic :)

But you don't have as many security issues as well :)

Re: Self-Hosting like it's 2025

#226
post #51

I love the idea of self-hosting, especially since I keep a number of very tiny websites/projects going at any given time, so resources would not really be too much of an issue for me. What stops me is security. I simply do not know enough about securing a self-hosted site on real hardware in my home and despite actively continuing to learn, it seems like the more I learn about it, the more questions I have. My identi…

[deleted]

Re: Self-Hosting like it's 2025

#228
post #154

Earlier quoted context omitted.

You'll have a hard time hosting websites/projects meant for the public to view, if you don't allow public internet traffic :)

But you don't have as many security issues as well :)

This is why I never leave my house too :)

Re: Self-Hosting like it's 2025

#229
post #49

I've been through just about everything to get where I am and I've ended up with Hashicorp Nomad and Consul with Traefik, managed by OpenTofu (open-source Terraform). Things that haven't worked for me: - Standalone Docker: Doesn't work great on its own. Containers often need to be recreated to modify immutable properties, like the specific image the container is running. To recreate the container, you need to store s…

Do you run a Nomad cluster? Or just on a single host? This is my desired state, I've set up Nomad a number of times but always get stuck in one place or another. I've gotten much further with Nomad than Kubernetes, but I've kind of always gone back to ol' faithful, writing a docker compose file and running everything that way.

Just a single host. The main thing that I couldn't figure out is how to turn off "bootstrap" mode, so I've just left it on.

Re: Self-Hosting like it's 2025

#230
post #118

Earlier quoted context omitted.

It is still my opinion that most businesses do not need Kubernetes, and neither should anyone self-hosting a service at home. I can see running something in a Docker container, and while I'd advise against containers what ships with EVERYTHING, I'd also advise against using Docker-compose to spin up an ungodly amount of containers for every service. You shouldn't be running multiple instances of Postgresql, or anythi…

If it wasn't for Kubernetes we'd need 1/3rd of our operations team. We're keeping unemployment down!

Is this a joke? I don't know much about Kubernetes, but I've heard from devops people it's quite helpful for bigger scale infrastructures.
Post reply on HN