# Quanta RAM é necessária para hospedar Discourse junto com outros serviços?

**URL:** <https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751>\
**Category:** Self-hosting\
**Tags:** unsupported-install, hosting\
**Created:** [Novembro 20, 2020, 2:53pm UTC](https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751 "2020-11-20T14:53:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Hady\_Ibrahim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hady_ibrahim/32/200690_2.png) [@Hady\_Ibrahim](https://meta.discourse.org/u/Hady_Ibrahim)\
**Post date:** [Novembro 20, 2020, 4:05pm UTC](https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751/4 "2020-11-20T16:05:04Z")

</div>

Aqui está o arquivo docker-compose. Tive que remover alguns links de imagens, pois não posso postar mais de 2, mas isso deve ser suficiente. Onde eu deveria colocar a variável de ambiente do buffer do banco de dados?

```
version: '2'
services:
  nginx:
    image: ''
    #image: 'itshady/nginx'
    ports:
      - '80:80'
    depends_on:
      - discourse
  intellectus:
    image: '
# image: 'itshady/intellectus'
    ports:
      - '90:80'
  postgresql:
    image: ''
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    volumes:
      #- './data/postgresql:/bitnami/postgresql'
      - 'postgresql_data:/bitnami/postgresql'
  redis:
    image: ''
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    volumes:
      - 'redis_data:/bitnami'
  discourse:
    image: 'docker.io/bitnami/discourse:2-debian-10' #2-debian-10
    ports:
      - '100:3000'
    depends_on:
      - postgresql
      - redis
    volumes:
      - './data/discourse:/bitnami'
    environment:
      - POSTGRESQL_HOST=postgresql
      - POSTGRESQL_ROOT_USER=postgres
      - POSTGRESQL_CLIENT_CREATE_DATABASE_NAME=bitnami_application
      - POSTGRESQL_CLIENT_CREATE_DATABASE_USERNAME=bn_discourse
      - POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD=bitnami1
      - DISCOURSE_POSTGRESQL_NAME=bitnami_application
      - DISCOURSE_POSTGRESQL_USERNAME=bn_discourse
      - DISCOURSE_POSTGRESQL_PASSWORD=bitnami1
      #- DISCOURSE_HOSTNAME=forums.intellectus.ca
      - DISCOURSE_HOSTNAME=${FORUM_URL}
      - DISCOURSE_EMAIL=
      - SMTP_HOST=
      - SMTP_PORT=
      - SMTP_USER=
      - SMTP_PASSWORD=
  sidekiq:
    image: 'docker.io/bitnami/discourse:2-debian-10'
    depends_on:
      - discourse
    volumes:
      - './data/discourse:/bitnami'
    command: 'nami start --foreground discourse-sidekiq'
    environment:
      - DISCOURSE_POSTGRESQL_NAME=bitnami_application
      - DISCOURSE_POSTGRESQL_USERNAME=bn_discourse
      - DISCOURSE_POSTGRESQL_PASSWORD=bitnami1
      - DISCOURSE_HOST=discourse
      - DISCOURSE_PORT=3000
      #- DISCOURSE_HOSTNAME=forums.intellectus.ca
      - DISCOURSE_HOSTNAME=${FORUM_URL}
      - SMTP_HOST=
      - SMTP_PORT=
      - SMTP_USER=
      - SMTP_PASSWORD=
volumes:
  postgresql_data:
    driver: local
# external: true
  redis_data:
    driver: local
# external: true
  discourse_data:
    driver: local
# external: true

```

---

_[View the full topic](https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751)._
