Learn about the Akash network and their partnership with Filebase.
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.
Akash's typical workflow is as follows:
- 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 between Akash and Filebase, 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.
- 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.
For example, your deploy.yml file would look something like:
- 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 key
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 upto build and run the application.