# Maintenance page while docker takes time to rebuilt

**URL:** https://meta.discourse.org/t/maintenance-page-while-docker-takes-time-to-rebuilt/260279
**Category:** Self-hosting
**Created:** [April 2, 2023, 8:19pm UTC](https://meta.discourse.org/t/maintenance-page-while-docker-takes-time-to-rebuilt/260279 "2023-04-02T20:19:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![djnoah](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@djnoah](https://meta.discourse.org/u/djnoah)
#### Post date: [April 2, 2023, 8:19pm UTC](https://meta.discourse.org/t/maintenance-page-while-docker-takes-time-to-rebuilt/260279/1 "2023-04-02T20:19:49Z")

</div>

Hi there,  
Is there a slick way to get a maintenance splash page in place while the docker is rebuilding?  
The host is an ubuntu 22.04 server ?  
Should I just install nginx and splash a page that way.  
I wish the discourse docker could still be running while the rebuild process is occuring. But I see that it rips down the current docker closer to the start of the build process.  
Cheers

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [April 2, 2023, 8:24pm UTC](https://meta.discourse.org/t/maintenance-page-while-docker-takes-time-to-rebuilt/260279/2 "2023-04-02T20:24:48Z")

</div>

> [@Add an offline page to display when Discourse is rebuilding or starting up](https://meta.discourse.org/t/add-an-offline-page-to-display-when-discourse-is-rebuilding-or-starting-up/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 …

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [April 2, 2023, 8:26pm UTC](https://meta.discourse.org/t/maintenance-page-while-docker-takes-time-to-rebuilt/260279/3 "2023-04-02T20:26:55Z")

</div>

> [@djnoah](#):
>
> I wish the discourse docker could still be running while the rebuild process is occuring. But I see that it rips down the current docker closer to the start of the build process.

You rarely need to upgrade from the terminal. Use the Upgrade page (Admin → Upgrade) and there is virtually zero downtime.

For the rare occasions when you need to upgrade from the terminal, see @Moin 's link

---

<div class="post-metadata">

### Author: ![djnoah](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@djnoah](https://meta.discourse.org/u/djnoah)
#### Post date: [April 2, 2023, 8:32pm UTC](https://meta.discourse.org/t/maintenance-page-while-docker-takes-time-to-rebuilt/260279/4 "2023-04-02T20:32:41Z")

</div>

Thank you for all the great information. Our team is really enjoying discourse. Kudos to all the developers that contributed to this project.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 3, 2023, 2:09am UTC](https://meta.discourse.org/t/maintenance-page-while-docker-takes-time-to-rebuilt/260279/5 "2023-04-03T02:09:11Z")

</div>

> [@djnoah](#):
>
> Should I just install nginx and splash a page that way.

If that’s something you can “just” do, then you can set up that nginx as a reverse proxy that will display the splash page if discourse is down.

> [@djnoah](#):
>
> wish the discourse docker could still be running while the rebuild process is occuring

You can do a two container install that does just that. This gives you downtime of just a minute while the new container starts up.

Which way is “easier” is a matter of opinion.
