I know everyone is still fiddling around with setup, but I have tried and tried to get my own compose working but have had no luck. If anyone can share their working compose, it would be really helpful. I have an existing Nginx Proxy Manager container serving as my reverse proxy, so I don’t want to install the nginx container in the sample compose either. Thanks!

  • Thomas@lemmy.zell-mbc.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    <<so I don’t want to install the nginx container in the sample compose either>> Thought the same initially but it turned out both nginx instances are required. I have a working setup with an installed nginx instance + certbot and an almost unmodified docker-compose.yml The modifications I made were changing container names (so they fit my standard) and the http port

    The lemmy documentation https://join-lemmy.org/docs/administration/install_docker.html recommends the following location block for the installed nginx:

      location / {
           proxy_pass http://localhost:LEMMY_PORT;
           proxy_set_header Host $host;
           include proxy_params;
    }
    

    This did not work for me! I had to comment the proxy_set_header line to make things work. With it I run into an error 400.

  • Zoë@lemmy.mlM
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Please do add a tag to your post as stated on the sublemmy sidebar! Thank you. :)

    • JonDotG@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      This finally worked for me! You are fantastic! What do you think about the 0.18.0 update? Any thoughts on the nginx.conf file? It seems to have broken my (finally) working install so I rolled back.