# Install the docker version with a remote postgresql

**URL:** <https://meta.discourse.org/t/install-the-docker-version-with-a-remote-postgresql/46329>\
**Category:** Self-hosting\
**Created:** [23 يونيو 2016، 12:48م UTC](https://meta.discourse.org/t/install-the-docker-version-with-a-remote-postgresql/46329 "2016-06-23T12:48:54Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Bertrand\_Bellenot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bertrand_bellenot/32/91890_2.png) [@Bertrand\_Bellenot](https://meta.discourse.org/u/Bertrand_Bellenot)\
**Post date:** [23 فبراير 2017، 9:42م UTC](https://meta.discourse.org/t/install-the-docker-version-with-a-remote-postgresql/46329/7 "2017-02-23T21:42:04Z")

</div>

Do we have to modify the web.template.yml file?  
In particular this part:

```
env:
  # You can have redis on a different box
  RAILS_ENV: 'production'
  UNICORN_WORKERS: 3
  UNICORN_SIDEKIQS: 1
  # this gives us very good cache coverage, 96 -> 99
  # in practice it is 1-2% perf improvement
  RUBY_GLOBAL_METHOD_CACHE_SIZE: 131072
  # stop heap doubling in size so aggressively, this conserves memory
  RUBY_GC_HEAP_GROWTH_MAX_SLOTS: 40000
  RUBY_GC_HEAP_INIT_SLOTS: 400000
  RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR: 1.5

  DISCOURSE_DB_SOCKET: /var/run/postgresql
  DISCOURSE_DB_HOST:
  DISCOURSE_DB_PORT:

```

Shouldn’t this also point to our remote postgresql instance?  
(same question for any other configuration file…)

---

_[View the full topic](https://meta.discourse.org/t/install-the-docker-version-with-a-remote-postgresql/46329)._
