Skip to content

Setup Discourse for ReST API testing

Revant Nandgaonkar edited this page Jun 17, 2021 · 5 revisions

Execute following commands:

wget https://raw.githubusercontent.com/bitnami/bitnami-docker-discourse/master/docker-compose.yml
sed -i -e 's|www.example.com|discourse.localhost|g' docker-compose.yml
docker-compose up -d

Wait for discourse container to start then visit http://discourse.localhost

  • DISCOURSE_USERNAME: Discourse application username. Default: user
  • DISCOURSE_PASSWORD: Discourse application password. Default: bitnami123

https://github.com/bitnami/bitnami-docker-discourse#user-and-site-configuration

Note:

  • If you've the k3d cluster with ingress running, port 80 will be in use. In that case change the docker-compose.yml to use different port for disourse.localhost
sed -i -e "s|'80:3000'|'8080:3000'|g" docker-compose.yml
Clone this wiki locally