Install Discourse for development using Docker

Hello!

I have managed to install Discourse on Windows using WSL.

Prerequisites that i have done.

  • Enable WSL with version 2
  • I am using Ubuntu 20.04
  • Set up your distribution :slight_smile: Follow the given instructions and you are ready to go

In the distribution, under my home home folder, /home/cosmin.

  • Install Docker as instructed in the first post. The installation part of docker.io was not necessary for me. I only executed sudo usermod -a -G docker $USER
  • After the Docker installation is complete, start the service with sudo docker service start and check it
  • cd discourse
  • Run d/boot_dev --init and wait to finish
  • Run in discourse folder, run d/unicorn and you are ready yo go

Note:
If the commands are reporting permissions error, try with sudo

Hope this helps :slight_smile:
Have a nice day or evening!
Cosmin

4 Likes