# Caprover install

**URL:** https://meta.discourse.org/t/caprover-install/228814
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [June 2, 2022, 5:24am UTC](https://meta.discourse.org/t/caprover-install/228814 "2022-06-02T05:24:13Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![MathiasFoster](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MathiasFoster](https://meta.discourse.org/u/MathiasFoster)
#### Post date: [June 2, 2022, 5:24am UTC](https://meta.discourse.org/t/caprover-install/228814/1 "2022-06-02T05:24:14Z")

</div>

Caprover is essentially a self-hosted Heroku, along with the ability to one-click-deploy a Docker container.

The details for these one-click apps are in a .yml — one currently exists for Discourse, but this is based on Discourse version 2.4.4.

The installation relies on the environment variable ALLOW\_EMPTY\_PASSWORD=yes.  
Installing a newer version of Discourse than version 2.4.4 simply doesn’t work: it throws errors asking for PostgreSQL and Redis passwords to be provided in env variables. When they are provided, it fails another way (I gave up trying, so can’t recall!).

Installing version 2.4.4 and trying to upgrade from the dashboard doesn’t work, as it throws the error that Sidekiq isn’t running, and you can’t open a shell in the application.

I don’t understand how Discourse, Docker or Caprover works enough to modify the .yml file to make it work with a newer version!  
Does anyone have any pointers?

- [.yml file for Discourse version 2.4.4](https://github.com/caprover/one-click-apps/blob/master/public/v4/apps/discourse.yml)
- [Instructions for turning docker-compose files into Caprover apps](https://github.com/caprover/one-click-apps)

---

<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: [June 2, 2022, 9:04am UTC](https://meta.discourse.org/t/caprover-install/228814/2 "2022-06-02T09:04:46Z")

</div>

If you can’t get help from the caprover people then your best bet will be a [standard install](https://meta.discourse.org/t/142537?silent=true) and restore the database to the new instance.

---

<div class="post-metadata">

### Author: ![XCS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xcs/32/284885_2.png) [@XCS](https://meta.discourse.org/u/XCS)
#### Post date: [December 7, 2022, 6:11pm UTC](https://meta.discourse.org/t/caprover-install/228814/3 "2022-12-07T18:11:25Z")

</div>

Any updates on this? I am also trying to install Discourse via Caprover, but only 2.4.4 works and uses the unsafe empty passwords. Whenever I try to use any other versions, it doesn’t work.

> When they are provided, it fails another way (I gave up trying, so can’t recall!).

Funny that I went the exact same route, trying a newer installation, setting postgres password env variables, trying to update postgres pass in container, yet it still didn’t work…

---

<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: [December 7, 2022, 6:38pm UTC](https://meta.discourse.org/t/caprover-install/228814/4 "2022-12-07T18:38:13Z")

</div>

It sounds much more difficult than a [standard install](https://meta.discourse.org/t/142537?silent=true). What is appealing to you about this setup? Do you want to run multiple web sites on a single host?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 7, 2022, 6:39pm UTC](https://meta.discourse.org/t/caprover-install/228814/5 "2022-12-07T18:39:47Z")

</div>

You’re very unlikely to get an update here because what you’re trying to do by it’s nature is unsupported.

---

<div class="post-metadata">

### Author: ![XCS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xcs/32/284885_2.png) [@XCS](https://meta.discourse.org/u/XCS)
#### Post date: [December 7, 2022, 6:51pm UTC](https://meta.discourse.org/t/caprover-install/228814/6 "2022-12-07T18:51:13Z")

</div>

It is a one-click install, not more difficult, a lot easier, the only problem is that only version 2.4.4 works.

And yes, I have a server with many apps/sites on it, I want to add a discourse instance too (migrate an existing 2.7.0 one)

---

<div class="post-metadata">

### Author: ![XCS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xcs/32/284885_2.png) [@XCS](https://meta.discourse.org/u/XCS)
#### Post date: [December 7, 2022, 6:52pm UTC](https://meta.discourse.org/t/caprover-install/228814/7 "2022-12-07T18:52:37Z")

</div>

What exactly is unsupported? Providing a Discourse one-click install for Caprover?

---

<div class="post-metadata">

### Author: ![XCS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xcs/32/284885_2.png) [@XCS](https://meta.discourse.org/u/XCS)
#### Post date: [December 7, 2022, 6:54pm UTC](https://meta.discourse.org/t/caprover-install/228814/8 "2022-12-07T18:54:25Z")

</div>

Also contacting the Caprover people doesn’t do much, as they are only handling the platform itself, each app developer must provide their own one-click configuration file based on Docker containers. Also, because 2.4.4. works, I assume it should be easy to figure out what changed and fix it for the latest version?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 7, 2022, 6:55pm UTC](https://meta.discourse.org/t/caprover-install/228814/9 "2022-12-07T18:55:12Z")

</div>

The only install we support here is the [standard install](https://meta.discourse.org/t/142537?silent=true).

Third parties create packages to encourage users to utilize their product, service or platform.

As you’re experiencing those packages aren’t well-maintained. We can’t really assume any of the technical debt they incur, but we can help you install discourse in a way that will continue to work in the future.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 7, 2022, 6:56pm UTC](https://meta.discourse.org/t/caprover-install/228814/10 "2022-12-07T18:56:45Z")

</div>

> [@XCS](#):
>
> I assume it should be easy to figure out what changed and fix it for the latest version?

You’re welcome to make that assumption. Years of assisting users here has shown that these packages can and will break in unpredictable ways. It’s really between you, caprover and the package developer though.

---

<div class="post-metadata">

### Author: ![XCS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xcs/32/284885_2.png) [@XCS](https://meta.discourse.org/u/XCS)
#### Post date: [December 7, 2022, 6:57pm UTC](https://meta.discourse.org/t/caprover-install/228814/11 "2022-12-07T18:57:33Z")

</div>

I understand, I am an app developer myself, but there are definitely ways users can install the app easier. This is why, for example, you do provide a Docker image, even though Docker is also a third-party. I also think I saw on DigitalOcean a one-click-app for Discourse. I do believe it is up to the developers to provide various ways the users can install their product and support different platforms.

---

<div class="post-metadata">

### Author: ![XCS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xcs/32/284885_2.png) [@XCS](https://meta.discourse.org/u/XCS)
#### Post date: [December 7, 2022, 6:58pm UTC](https://meta.discourse.org/t/caprover-install/228814/12 "2022-12-07T18:58:57Z")

</div>

Yes, things break over time if the developer doesn’t support them, this is why I think it’s up to the developer to create and maintain them, and offer the users an easy way to install their product on various environments.

Isn’t this the same like the developer providing a build for Windows, one for Linux? Yes, the developer can say we only support Linux and force the users to use that if they want the product, but they could also add support for other platforms.

Also, from what I saw so far with CapRover, everything that has to be done is to only create a correct yml file, that is unlikely to break over time unless the product itself (or technologies it uses) receive breaking updates.

---

<div class="post-metadata">

### Author: ![XCS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xcs/32/284885_2.png) [@XCS](https://meta.discourse.org/u/XCS)
#### Post date: [December 8, 2022, 12:20am UTC](https://meta.discourse.org/t/caprover-install/228814/13 "2022-12-08T00:20:23Z")

</div>

Ok, I think I fixed it, see this: [App issue: Discourse · Issue #803 · caprover/one-click-apps · GitHub](https://github.com/caprover/one-click-apps/issues/803#issuecomment-1341790089)

---

<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: [December 8, 2022, 10:49am UTC](https://meta.discourse.org/t/caprover-install/228814/14 "2022-12-08T10:49:35Z")

</div>

Glad you got it fixed! It looks like “one click” includes 100 lines of yml that few people know how to support.

You can search for Bitnami here to find many not examples of people having trouble.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 9, 2022, 10:49am UTC](https://meta.discourse.org/t/caprover-install/228814/15 "2022-12-09T10:49:53Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
