I have tried installing it with docker on Ubuntu 20.04 and 22.04 LTS but cannot seem to get it working. The build keeps erroring out with docker errors.

  • @yay
    link
    English
    61 year ago

    I got mine running via Docker by copying the docker-compose, nginx, and lemmy.hjson files from the lemmy-ansible repo. Everything is working so far except votes and comments from other instances. They won’t sync for some reason.

    • jeena
      link
      fedilink
      11 year ago

      Here is mine https://gist.github.com/jeena/6179470a8d616455f30635a5c71f5f64 which had a similar problem with the comments, although I couldn’t post comments on my own instance either.

      For me the thing was that I had to add:

      map $http_upgrade $connection_upgrade {
          default upgrade;
          ''      close;
      }
      
      

      and

              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection $connection_upgrade;
      
      

      And also change the nginx in the docker to port 8080 so my normal nginx could keep running on 80 and handle all the ssl certificate stuff.

      My setup is:

      Browser -> native Nginx -> docker Nginx -> lemmy

      • @yay
        link
        11 year ago

        Thanks! My set up is a bit different however. I don’t use docker nginx and I just use the native one but I do have proxy_set_header Upgrade $http_upgrade; and proxy_set_header Connection $connection_upgrade; on my nginx.conf.

        I could post comments locally on my own instance. That works but I can’t see comments or upvotes from other instances but I can see their posts (not all of it though). Likewise, I can see my own instance’s posts from another instance but not the comments or upvotes.

        My instance is also behind Cloudflare but turning off the proxy doesn’t change the behaviour.