Skip to content

Instantly share code, notes, and snippets.

@AeroXi
Created March 13, 2022 06:35
Show Gist options
  • Save AeroXi/4f7da07d4b9aa8c2b465558e6777307c to your computer and use it in GitHub Desktop.
Save AeroXi/4f7da07d4b9aa8c2b465558e6777307c to your computer and use it in GitHub Desktop.
---
version: "3.0"
services:
mongo:
image: mongo:latest
params:
storage:
data:
mount: /var/lib/mongodb
expose:
- port: 27017
to:
- global: true
env:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=rootpassword
profiles:
compute:
mongo:
resources:
cpu:
units: 0.3
memory:
size: 512Mi
storage:
- size: 2Gi
- name: data
size: 2Gi
attributes:
persistent: true
class: beta3
placement:
akash:
pricing:
mongo:
denom: uakt
amount: 1000.2
deployment:
mongo:
akash:
profile: mongo
count: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment