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://akash.network/docs
Setup your wallet: https://akash.network/docs/getting-started/token-and-wallets/
Step by step guides to Akash:
- Web App: https://console.akash.network
- CLI: https://akash.network/docs/deployments/akash-cli/overview
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 Akash Console:
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 Akash Console:
- 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.