-
Notifications
You must be signed in to change notification settings - Fork 11
Examples
Tom Beynon edited this page Aug 16, 2021
·
9 revisions
Here are some example deployment manifests I've tested myself to try out.
The Awesome Akash repository has a lot more examples, and my Akash Hello World tutorial can help you setup your own Docker image if needed.
https://github.com/tombeynon/akash-hello-world
---
version: "2.0"
services:
web:
image: tombeynon/akash-hello-world:release-v0.1.1
expose:
- port: 80
as: 80
accept:
#- akashhw.tombeynon.co.uk
to:
- global: true
profiles:
compute:
web:
resources:
cpu:
units: 0.5
memory:
size: 512Mi
storage:
size: 512Mi
placement:
dcloud:
attributes:
host: akash
signedBy:
anyOf:
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
pricing:
web:
denom: uakt
amount: 1
deployment:
web:
dcloud:
profile: web
count: 1
Follow this brilliant guide from @smsirag
https://decentralize.sirags.us/?p=69
---
version: "2.0"
services:
db:
image: mysql/mysql-server:latest
env:
- MYSQL_ROOT_PASSWORD=notmypw
- MYSQL_DATABASE=DBNAME#1
- MYSQL_USER=DBUSER#1
- MYSQL_PASSWORD=notmypw
expose:
- port: 3306
to:
- service: wordpress
wordpress:
depends-on:
- db
image: wordpress:latest
env:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_NAME=DBNAME#1
- WORDPRESS_DB_USER=DBUSER#1
- WORDPRESS_DB_PASSWORD=notmypw
- WORDPRESS_TABLE_PREFIX=wp_
expose:
- port: 80
accept:
- YOURDOMAIN.COM
to:
- global: true
profiles:
compute:
wordpress:
resources:
cpu:
units: 1
memory:
size: 1Gi
storage:
size: 2Gi
db:
resources:
cpu:
units: 0.5
memory:
size: 512Mi
storage:
size: 512Mi
placement:
eastcoast:
pricing:
wordpress:
denom: uakt
amount: 5000
db:
denom: uakt
amount: 5000
deployment:
wordpress:
eastcoast:
profile: wordpress
count: 1
db:
eastcoast:
profile: db
count: 1
https://github.com/tombeynon/akash-archive-node
---
version: "2.0"
services:
akash:
image: tombeynon/akash-archive-node:0.12.1
env:
- AKASH_MONIKER=my-node-name
expose:
- port: 8080
as: 80
to:
- global: true
- port: 26656
to:
- global: true
- port: 26657
to:
- global: true
- port: 1317
to:
- global: true
- port: 9090
to:
- global: true
profiles:
compute:
akash:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
size: 32Gi
placement:
dcloud:
attributes:
host: akash
signedBy:
anyOf:
- akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63
pricing:
akash:
denom: uakt
amount: 10
deployment:
akash:
dcloud:
profile: akash
count: 1
https://github.com/metal3d/docker-xmrig
---
version: "2.0"
services:
miner:
image: metal3d/xmrig:latest
env:
- POOL_URL=your pool url
- POOL_USER=your monero address
- POOL_PASS=optional pool pass
expose:
- port: 22
as: 2212
to:
- global: true
profiles:
compute:
miner:
resources:
cpu:
units: 2
memory:
size: 4Gi
storage:
size: 20Gi
placement:
dcloud:
attributes:
host: akash
signedBy:
anyOf:
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
pricing:
miner:
denom: uakt
amount: 10
deployment:
miner:
dcloud:
profile: miner
count: 1