Skip to content

Proxying via nginx on host machine

Alex Vandiver edited this page Jun 13, 2023 · 4 revisions

To proxy connections to the docker-zulip container from nginx running on a host machine, you'll want to follow the standard deployment recommendations for putting Zulip behind a proxy.

  1. Add a /etc/nginx/sites-enabled/zulip.example.com.conf, based on the suggested nginx configuration. You should use a proxy_pass of http://127.0.0.1:8080.

  2. Use these settings in your docker-compose.yml:

     ...
     zulip:
        ports:
          - "8080:80"
        environment:
          # Other settings...
          SETTING_EXTERNAL_HOST: "zulip.example.com"
          DISABLE_HTTPS: true
          LOADBALANCER_IPS: 172.16.0.0/20

    If your Docker network is something other than 172.16.0.0/20 (or a subset thereof), adjust LOADBALANCER_IPS accordingly.

Clone this wiki locally