Sign inSign up

featheredtoast/discourse

By featheredtoast

•Updated 11 days ago

Batteries included discourse web image, with minimal plugins

Image
0

10K+

featheredtoast/discourse repository overview

Discourse web vanilla image

Run with the following env vars:

  • DISCOURSE_DB_HOST - postgres hostname
  • DISCOURSE_DB_PASSWORD - postgres database password
  • DISCOURSE_DEVELOPER_EMAILS - initial developer/admin email
  • DISCOURSE_HOSTNAME - hostname
  • DISCOURSE_REDIS_HOST - redis hostname
  • DISCOURSE_SMTP_ADDRESS - mail hostname
  • DISCOURSE_SMTP_PORT - mail port
  • DISCOURSE_SMTP_USER_NAME - mail username
  • DISCOURSE_SMTP_PASSWORD - mail password

Sample docker-compose file:

services:
  # Mailhog for testing...
  mail:
    image: mailhog/mailhog
    ports:
      - 8025:8025
  # Redis isn't as customized, use off the shelf
  redis:
    image: redis
    restart: unless-stopped
    volumes:
      - ./shared/test-redis:/data

  # separate db instance
  # migrate to separated postgres data
  #https://github.com/docker-library/postgres/pull/1259
  # built from https://github.com/featheredtoast/discourse-db
  db:
    image: featheredtoast/discourse-db:pg15
    restart: unless-stopped
    volumes:
      - ./shared/db:/var/lib/postgresql
      - ./shared/db/data:/var/lib/postgresql/data
    environment:
      DB_PASSWORD: SOME_SECRET

  # zero config/plugin batteries included image built from https://github.com/featheredtoast/discourse-docker-compose/blob/main/.github/workflows/push-web-only.yml
  # built from `launcher build web_only`
  web:
    image: featheredtoast/discourse
    restart: unless-stopped
    links:
      - db
      - redis
      - mail
    environment:
      DISCOURSE_DB_HOST: db
      DISCOURSE_DB_PASSWORD: SOME_SECRET
      DISCOURSE_DEVELOPER_EMAILS: [email protected]
      DISCOURSE_HOSTNAME: localhost
      DISCOURSE_REDIS_HOST: redis
      DISCOURSE_SMTP_ADDRESS: mail
      DISCOURSE_SMTP_PORT: 1025
      DISCOURSE_SMTP_PASSWORD: pa$$word
      DISCOURSE_SMTP_USER_NAME: [email protected]
    ports:
      - 443:443
      - 80:80
    depends_on:
      - db
      - redis

Tag summary

Content type

Image

Digest

sha256:59cf2aff8…

Size

599.7 MB

Last updated

18 days ago

docker pull featheredtoast/discourse