Sign inSign up

andressagomes/discourse

By andressagomes

•Updated about 7 years ago

Discourse image, can be used with Compose and Swarm.

Image
0

958

andressagomes/discourse repository overview

⁠Discourse in Docker

⁠Requirements

  • Postgres
  • Redis

⁠Important

You must create an admin user to start using Discourse.

Use the no bash command inside the container:

Command: rake admin:create

Update the container and Discourse will work next.

Reminder: The admin user will be saved only if Postgres has a volume

⁠Environment Variables

⁠POSTGRES_DATABASE

Variable responsible for Postgres database name

  • Examplo: discourse

⁠POSTGRES_USER

Variable responsible for Postgres username

  • Example: postgres

⁠POSTGRES_PASSWORD

Variable responsible for Postgres password

  • Example: password

⁠POSTGRES_HOST

Variable responsible for Postgres hostname

  • Example: postgres

⁠POSTGRES_PORT

Variable responsible for the Postgres access port

  • Example: 5432 (default)

⁠REDIS_HOST

Variable responsible for Redis hostname

  • Example: redis

⁠REDIS_PORT

Variable responsible for the Redis access port

  • Example: 6379 (default)

⁠SMTP_HOST

Variable responsible for email server hostname

  • Example: smtp.gmail.com

⁠SMTP_PORT

Variable responsible for smtp port

  • Example: 465

⁠SMTP_USERNAME

Variable responsible for the username that will send email

⁠SMTP_PASSWORD

Variable responsible for email user password

  • Example: password123

⁠SMTP_DOMAIN

Variable responsible for email domain

  • Example: gmail.com

⁠SMTP_TLS

Variable is a boolean

'true' or 'false'

⁠EXTERNAL_URL

Variable responsible for Discourse external access

  • Example:

    • Localhost: 0.0.0.0:4545
    • URL: discourse.example.com

⁠RAILS_ENV

Variable responsible for Rails environment type

  • Example: production

⁠DISCOURSE_REDIS_PASSWORD

Variable responsible for Redis password for Discourse connection

  • Example: password

Tag summary

Content type

Image

Digest

Size

844.2 MB

Last updated

about 7 years ago

docker pull andressagomes/discourse:2.3.2