Skip to content

Instantly share code, notes, and snippets.

@lixuejiang
Created March 14, 2022 03:12
Show Gist options
  • Save lixuejiang/5a2d1bbf6a44767a2a7a231af217c090 to your computer and use it in GitHub Desktop.
Save lixuejiang/5a2d1bbf6a44767a2a7a231af217c090 to your computer and use it in GitHub Desktop.
---
version: "2.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.2
memory:
size: 256Mi
storage:
- size: 1Gi
- name: data
size: 1Gi
attributes:
persistent: true
class: beta2
placement:
akash:
pricing:
mongo:
denom: uakt
amount: 1000.1
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