# אתחול קונטיינר - דיסקרוס מנסה להתקין מחדש

**URL:** <https://meta.discourse.org/t/container-restart-discourse-tries-to-reinstall/159171>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [29 ביולי,‏ 2020,‏ 1:20pm UTC](https://meta.discourse.org/t/container-restart-discourse-tries-to-reinstall/159171 "2020-07-29T13:20:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rosscdh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rosscdh/32/188456_2.png) [@rosscdh](https://meta.discourse.org/u/rosscdh)\
**Post date:** [29 ביולי,‏ 2020,‏ 2:15pm UTC](https://meta.discourse.org/t/container-restart-discourse-tries-to-reinstall/159171/5 "2020-07-29T14:15:56Z")

</div>

Hey there,

guys its docker so there is not allot of other ways of starting.

it has a set of env vars

```plaintext
nami INFO Initializing postgresql-client
    nami INFO postgresql-client successfully initialized
    nami INFO Initializing discourse
    discour INFO Patching Discourse...
    postgre INFO Trying to connect to PostgreSQL server
    postgre INFO Found PostgreSQL server listening at postgres:5432
    postgre INFO PostgreSQL server listening and working at postgres:5432
    discour INFO Preparing Discourse environment...
    discour INFO Configuring the Discourse database files...
    discour INFO Configuring Redis...
    discour INFO Setting up SMTP in Discourse...
    discour INFO Configuring Discourse database...
    discour INFO Enabling PostgreSQL plugins for Discourse...
    discour INFO Migrating database...
    discour INFO Creating the Discourse admin user...
    discour INFO Configuring your Discourse installation...
    Error executing 'postInstallation': ERROR: duplicate key value violates unique constraint "index_site_settings_on_name"
    DETAIL: Key (name)=(site_contact_username) already exists.

```

so the db is present but for some reason discourse tries to install itself again.. and the question is how does one prevent this from happening?

is there an env var? (id expect the system would discover that there is a db and configuration present?)

---

_[View the full topic](https://meta.discourse.org/t/container-restart-discourse-tries-to-reinstall/159171)._
