Kingston, Ontario
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
credo@lemmy.world to Selfhosted@lemmy.worldEnglish · 19 hours ago

Self-hosting is having a moment. Ethan Sholly knows why.

arstechnica.com

external-link
message-square
87
link
fedilink
231
external-link

Self-hosting is having a moment. Ethan Sholly knows why.

arstechnica.com

credo@lemmy.world to Selfhosted@lemmy.worldEnglish · 19 hours ago
message-square
87
link
fedilink
We interview Ethan Sholly of the selfh.st podcast/newsleter/directory.
  • Jeena@piefed.jeena.net
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    17 hours ago

    Some examples:

    • Lemmy: https://github.com/LemmyNet/lemmy-ansible/blob/main/templates/docker-compose.yml#L81
    • Firefox Sync: https://github.com/mozilla-services/syncstorage-rs/blob/master/docker-compose.mysql.yaml#L13
    • TinyTinyRSS: https://gitlab.tt-rss.org/tt-rss/tt-rss/-/blob/master/docker-compose.yml?ref_type=heads#L10
    • Mastodon: https://github.com/mastodon/mastodon/blob/main/docker-compose.yml#L5
    • PeerTube: https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/docker-compose.yml#L71

    and many more.

    • WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      6 hours ago

      all of these run the database in a separate container, not inside the app container. the latter would be hard to fix, but the first is just that way to make documentation easier, to be able to give you a single compose file that is also functional in itself. none of them use their own builds of the database server (though lemmy with its postgres variant may be a bit of an outlier), so they are relatively easy to configure for an existing db server.

      all I do in cases like this is look up the database initialization command (in the docker compose file), run that in my primary postgres container, create a new docker network and attach it to the postgres stack and the new app’s stack (stack: the container composition defindd by the docker compose file). and then I tell the app container, usually through envvars or command line parameters embedded in the compose file, that the database server is at xy hostname, and docker’s internal DNS server will know that for xy hostname it should return the IP address of the container that is named xy, through the appropriate docker network. and also the user and pass for connection. from then, from the app’s point of view, my database server in that other container is just like a dedicated physical postgres machine you put on the network with its own cable going to a switch.

      unless very special circumstances, where the app needs a custom build of postgres, they can share a single instance just fine. but in that case you would have to run 2 postgres instances even without docker, or migrate to the modified postgres, which is an option with docker too.

    • FlexibleToast@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      17 hours ago

      Well, yes that’s best practice. That doesn’t mean you have to do it that way.

Selfhosted@lemmy.world

selfhosted@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !selfhosted@lemmy.world

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:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

  • selfh.st Newsletter and index of selfhosted software and apps
  • awesome-selfhosted software
  • awesome-sysadmin resources
  • Self-Hosted Podcast from Jupiter Broadcasting

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

Questions? DM the mods!

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 807 users / day
  • 3.96K users / week
  • 4.1K users / month
  • 4.13K users / 6 months
  • 1 local subscriber
  • 46.9K subscribers
  • 161 Posts
  • 1.62K Comments
  • Modlog
  • mods:
  • Ruud@lemmy.world
  • Loki@lemmy.world
  • CannaVet@lemmy.world
  • devve@lemmy.world
  • HybridSarcasm@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org