A core goal of decentralized web, also known as dWeb, is to help people and organizations regain control of their computing and storage.
To break down barriers when it comes to building the dWeb, Akash Network, an open-source, decentralized cloud has teamed up with Filebase.
Define your Docker image, CPU, Memory, and Storage in a deploy.yaml file.
Set your price, receive bids from providers in seconds, and select the lowest price.
Deploy your application without having to set up, configure, or manage servers.
Scale your application from a single container to hundreds of deployments.
Through this partnership, developers and enterprises now have the ability to pair dWeb applications with the thousands of existing backup tools, application SDKs and frameworks that they already know and love. By offering open-source dWeb compute and petabyte-scale object storage,
Akash and Filebase can help to reduce cloud costs by up to 85 percent, compared to traditional cloud services.
Below is a short setup guide that will help you to quickly configure and setup Akash for success. For more questions pleas visit the Akash documentation site
Step 1: Set the environment variables in the deploy.yml and deploy on Akash
Step 2: use the URL and port Akash gives you to connect to the Postgres server, with the credentials you provided in the environment variables. For example cluster.ewr1p0.mainnet.akashian.io:31234
Alternatively, you can add your own app container to the deploy.yml and expose the Postgres 5432 port to your application only for a local server.
- service: postgres
- service: postgres
- port: 5432
- service: app
- service: cron
POSTGRES_USER=postgres - your Postgres server username
POSTGRES_PASSWORD=password - your Postgres server password
POSTGRES_HOST=postgres - Postgres server host (this will be whatever you named it in deploy.yml)
POSTGRES_PORT=5432 - Postgres port, will be 5432 unless you aliased it in deploy.yml
POSTGRES_DATABASE=akash_postgres - name of your database
BACKUP_PATH=bucketname/path - bucket and path for your deployments (make sure directories exist first)
BACKUP_KEY=key - your Filebase access key
BACKUP_SECRET=secret - your Filebase secret
BACKUP_PASSPHRASE=secret - a passphrase to encrypt your backups with
BACKUP_HOST=https://s3.filebase.com - the S3 backup host, this defaults to Filebase but can be any S3 compatible host
BACKUP_SCHEDULE=*/15 * * * * - the cron schedule for backups (defaults to every 15 minutes)
BACKUP_RETAIN=7 days - how many days to keep backups for
You can run the application locally using Docker compose. Copy the .env.sample file to .env and populateRun docker-compose up to build and run the application