Would Discourse/Docker work on Nginx without a plethora of work?

I think it would work. but it would probably require a ton of work. Does anyone have a simple way? Or should I just give up on hosting it myself? I would love to, as I have made my old laptop into a web server. It runs Lubuntu with Nginx installed. Does anyone have experience with this at all? Thanks!

Just change the Docker port at app.yml:

## which TCP/IP ports should this container expose?
expose:
  - "8080:80"   # fwd host port 80   to container port 80 (http)
  - "2222:22" # fwd host port 2222 to container port 22 (ssh)

and configure the proxy on Nginx:

server {
        listen 80;

        server_name example.com;

        location / {
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_set_header   Host             $host;

            proxy_pass http://127.0.0.1:8080/;
        }

}
2 Likes

Thanks a lot @kuchaev_iv! Really new to web servers you see :slight_smile: