This guide is intended to describe the process to run Discourse Multi-Tiered application on Akash Network.
Akash Network, the world’s first decentralized and open-source cloud, accelerates deployment, scale, efficiency and price performance for high-growth industries like blockchain and machine learning/AI.
Akash means "open space" or "sky" in ancient Sanskrit.
Read the docs: https://docs.akash.network/
Setup your wallet: https://docs.akash.network/token/keplr
Step by step guides to Akash:
- Desktop App (Cloudmos): https://docs.akash.network/guides/deploy
- Web App: https://docs.akash.network/guides/web
- CLI: https://docs.akash.network/guides/cli
Discourse is the 100% open source discussion platform built for the next decade of the Internet. Use it as a mailing list, discussion forum, long-form chat room, and more!
The provided SDL deploy a Multi-Tiered application with 4 services/containers:
- PostgreSQL
- Redis
- Sidekiq discourse
- Discourse
All you need to run your own Discourse services in Akash Network is deploy the SDL: deploy.yml
script on Mainnet using your preferred "Step by step guides to Akash" mentioned above.
Additionally this guide show how to using Cloudmos:
- Download Cloudmos for your platform.
- Execute the installer and setup your wallet in Cloudmos, you will need your mnemonic (setup a new wallet is recommended).
- Fund your wallet (at least 6 AKT)
- If you want, customize the SDL deploy.yml
- Deploy the SDL file Cloudmos (video):
Note: the process is the same if you use https://akashdeploy.hns.siasky.net/ to deploy your SDL.
Discourse need deploy over HTTPS otherwise could get a browser block for Content Security Policy issues this guide written by Tee Yee Yang show how to do that.
To get past this and test your deployment, change your browser settings and temporarily disable CSP, in Firefox based browsers the steps are:
- Put about:config as URL and press enter
- Confirm you know what are you doing
- Search
security.csp.enable
and clic to disable - Test Discourse on Akash
- Enable
security.csp.enable
policy
Follow the comments in SDL file to enable passwords
- ALLOW_EMPTY_PASSWORD=yes
- POSTGRESQL_USERNAME=akt_discourse
- POSTGRESQL_DATABASE=akash_discourse
## Set if ALLOW_EMPTY_PASSWORD=no
#- POSTGRESQL_PASSWORD=changeme
#- POSTGRESQL_POSTGRES_PASSWORD=changeme
The costs depends on capacity described in section profiles.compute
in deploy.yml file.
With the default setting this deployment aprox. cost 6 AKT per month (someting like $14).
Taken from Cloudmos website:
- Cloudmos Deploy is currently in BETA. We strongly suggest you start with a new wallet and a small amount of AKT until we further stabilize the product.
- We're not responsible for any loss or damages related to using the app.
- The app has a high chance of containing bugs since it's in BETA, use at your own risk.