Container restart - discourse tries to reinstall

Hey there,

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

it has a set of env vars

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?)