Skip to content

Instantly share code, notes, and snippets.

@nampdn
Last active November 1, 2022 09:39
Show Gist options
  • Save nampdn/b7f1ccd190f158b35034f6c6fb2d26d3 to your computer and use it in GitHub Desktop.
Save nampdn/b7f1ccd190f158b35034f6c6fb2d26d3 to your computer and use it in GitHub Desktop.
VGM Akash SDL Deploy Template
---
version: "2.0"
services:
gateway:
image: vgmtv/stream-gateway:1.0.11
env:
- IPFS_GATEWAY=http://ipfs:8080
- REDIS_CACHE_EXPIRE_TIME=300
- REDIS_URL=redis://redis:6379
- REDIS_NODES=redis
depends_on:
- redis
- ipfs
expose:
- port: 3333
as: 80
accept:
- gateway.vgm.cloud
to:
- global: true
admin:
image: beevelop/nginx-basic-auth
env:
- HTPASSWD=vgmadmin:$apr1$8k0sjcvm$S.CEcuR4jOlQj8dW7pvt./
- FORWARD_PORT=5001
- FORWARD_HOST=ipfs
expose:
- port: 80
as: 80
accept:
- gateway1-api.vgm.cloud
to:
- global: true
ipfs:
image: ipfs/go-ipfs:master-2022-10-30-2fd4e19
expose:
- port: 4001
as: 4001
to:
- global: true
- port: 5001
as: 5001
to:
- service: admin
- port: 8080
as: 8080
to:
- service: gateway
redis:
image: redis:latest
env:
- REDIS_AOF_ENABLED=no
- ALLOW_EMPTY_PASSWORD=yes
expose:
- port: 6379
to:
- service: gateway
profiles:
compute:
gateway:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
size: 500Mi
ipfs:
resources:
cpu:
units: 4
memory:
size: 7Gi
storage:
size: 20Gi
admin:
resources:
cpu:
units: 1
memory:
size: 500Mi
storage:
size: 500Mi
redis:
resources:
cpu:
units: 1
memory:
size: 7Gi
storage:
size: 20Gi
placement:
akash:
attributes:
host: akash
pricing:
gateway:
denom: uakt
amount: 10000
ipfs:
denom: uakt
amount: 10000
admin:
denom: uakt
amount: 10000
redis:
denom: uakt
amount: 10000
deployment:
gateway:
akash:
profile: gateway
count: 2
ipfs:
akash:
profile: ipfs
count: 1
admin:
akash:
profile: admin
count: 1
redis:
akash:
profile: redis
count: 1
---
version: "2.0"
services:
gateway:
image: vgmtv/stream-gateway:1.0.11
env:
- IPFS_GATEWAY=https://ipfs.filebase.io
- REDIS_CACHE_EXPIRE_TIME=300
- REDIS_URL=redis://redis:6379
- REDIS_NODES=redis
depends_on:
- redis
- ipfs
expose:
- port: 3333
as: 80
accept:
- gateway.vgm.cloud
to:
- global: true
redis:
image: redis:latest
env:
- REDIS_AOF_ENABLED=no
- ALLOW_EMPTY_PASSWORD=yes
expose:
- port: 6379
to:
- service: gateway
profiles:
compute:
gateway:
resources:
cpu:
units: 2
memory:
size: 2Gi
storage:
size: 500Mi
redis:
resources:
cpu:
units: 2
memory:
size: 7Gi
storage:
size: 20Gi
placement:
akash:
attributes:
host: akash
pricing:
gateway:
denom: uakt
amount: 10000
redis:
denom: uakt
amount: 10000
deployment:
gateway:
akash:
profile: gateway
count: 1
redis:
akash:
profile: redis
count: 1
---
version: "2.0"
services:
gateway:
image: vgmtv/stream-gateway:1.0.9
env:
- IPFS_GATEWAY=http://ipfs:8080
- REDIS_CACHE_EXPIRE_TIME=300
- REDIS_URL=redis://redis:6379
depends_on:
- redis
- ipfs
expose:
- port: 3333
as: 80
accept:
- gateway.qazwsxedc1901.me
to:
- global: true
ipfs:
image: ipfs/go-ipfs:master-2022-09-13-87dc8de
expose:
- port: 4001
as: 4001
to:
- global: true
- port: 5001
as: 5001
to:
- service: gateway
- port: 8080
as: 8080
to:
- service: gateway
redis:
image: redis:latest
env:
- REDIS_AOF_ENABLED=no
- ALLOW_EMPTY_PASSWORD=yes
expose:
- port: 6379
to:
- service: gateway
profiles:
compute:
gateway:
resources:
cpu:
units: 0.5
memory:
size: 500Mi
storage:
size: 500Mi
ipfs:
resources:
cpu:
units: 2
memory:
size: 1Gi
storage:
size: 20Gi
redis:
resources:
cpu:
units: 1
memory:
size: 3Gi
storage:
size: 5Gi
placement:
akash:
attributes:
host: akash
pricing:
gateway:
denom: uakt
amount: 10000
ipfs:
denom: uakt
amount: 10000
redis:
denom: uakt
amount: 10000
deployment:
gateway:
akash:
profile: gateway
count: 1
ipfs:
akash:
profile: ipfs
count: 1
redis:
akash:
profile: redis
count: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment