# Discourse High Availability

**URL:** https://meta.discourse.org/t/discourse-high-availability/55091
**Category:** Self-hosting
**Created:** [January 3, 2017, 7:58am UTC](https://meta.discourse.org/t/discourse-high-availability/55091 "2017-01-03T07:58:36Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jakimfett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jakimfett/32/65817_2.png) [@jakimfett](https://meta.discourse.org/u/jakimfett)
#### Post date: [January 3, 2017, 3:49pm UTC](https://meta.discourse.org/t/discourse-high-availability/55091/4 "2017-01-03T15:49:49Z")

</div>

Info on avoiding port exposure:

> [@Use multiple Docker containers without exposing ports](https://meta.discourse.org/t/how-to-use-docker-multiple-containers-without-exposing-ports/22283/7):
>
> Just in case anybody stumbles here for running several Discourse instances behind [https://github.com/jwilder/nginx-proxy:](https://github.com/jwilder/nginx-proxy:) Set discourse to listen on a local link port and tell the proxy to use the container’s internal port 80 like expose: - "127.0.0.1:2836:80" env: VIRTUAL\_PORT: '80'

Load balancing with nginx:

> **[TCP load balancing with Nginx (SSL Pass-thru)](https://serversforhackers.com/c/tcp-load-balancing-with-nginx-ssl-pass-thru)**
>
> Learn to use Nginx 1.9.\* to load balance TCP traffic. In this case, we'll setup SSL Passthrough to pass SSL traffic received at the load balancer onto the web servers.

Enabling http2 on Debian:

> **[How to Enable HTTP2 on Debian 8 with Nginx Web Server](https://www.linuxbabe.com/nginx/enable-http2-debian-8-nginx-web-server)**
>
> HTTP2 is way faster than HTTP1.1. This tutorial shows how to enable HTTP2 with Nginx on Debian 8 server and explain some Nginx knowledge.

Offline page setup:

> [@Add an offline page to display when Discourse is rebuilding or starting up](https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238):
>
> warning This guide is intended for advanced users, who are already using nginx outside the docker container. By following this guide you make your setup more complicated and will lose some speed benefits like HTTP2 if you’re not running Ubuntu 16.04 or later. Proceed with caution! When Discourse is rebuilding or starting up, your users will usually either see an error message from their browser… …or a not-so-nice 502 error message from Nginx: If you’re a perfectionist …

---

_[View the full topic](https://meta.discourse.org/t/discourse-high-availability/55091)._
