SYS265 Docker Project - eitan-j/tech-journal GitHub Wiki

Creating a forum using docker

  • mkdir discourse
  • cd discourse
  • curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/discourse/docker-compose.yml > docker-compose.yml
  • nano docker-compose.yml
    • services: -> discourse: -> environment:
      • - DISCOURSE_HOST=docker01-eitan
    • services: -> sidekiq: -> environment:
      • - DISCOURSE_HOST=docker01-eitan
    • save and exit
  • stop any containers already using port 80 with docker compose down in other dir
  • return to discourse dir
  • docker compose up -d
  • takes about 10 minutes on the VM
  • I can't create accounts without a working SMTP server, so I can't really do anything other than look at the default posts