• 6 Posts
  • 83 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle

  • Ah right, I assumed you were trying to connect the lemmy container to postgres running outside of docker.

    One important thing to remember with all docker compose files - the service name (the first keys in the services: configuration) is also the hostname of that container so to ping lemmy (from some other container in that docker compose) you would do ping lemmy, same for postgres ping postgres - but if the postgres service was named db0 then it would be ping db0.
    You also do not have to expose ports - all containers in that compose share one network (exposing is for outside access).
    All together your postgres config for lemmy should like this:

     database: { 
      # name of the postgres database for lemmy
      database: "lemmy" 
      # username to connect to postgres 
      user: "postgres"
      # password to connect to postgres
      password: "xxxxxxx"
      # host where postgres is running
      host: "postgres" 
      # port where postgres can be accessed
      port: 5432
      # maximum number of active sql connections
      pool_size: 10
    }
    













  • So, I would watch ~/.xsession-errors and /var/log/xorg.0.log for any warning and/or errors and try googling them.
    Also Arch wiki is often great “checklist” even for different distros.

    nvtop for monitoring the nvidia card memory and “cpu”, also glxgears for basic benchmarking.

    I am guessing you are playing Peglin thru steam (so proton), you might want to try changing to proton experimental, see if it’s not just when playing thru proton.