Skip to content

Instantly share code, notes, and snippets.

@akhdaniel
Last active February 2, 2025 16:02
Show Gist options
  • Select an option

  • Save akhdaniel/3be41bf848dd5b61ae77c98e798563b9 to your computer and use it in GitHub Desktop.

Select an option

Save akhdaniel/3be41bf848dd5b61ae77c98e798563b9 to your computer and use it in GitHub Desktop.
opendax step by step install

1 Requiement VM

Minimum VM requirements for OpenDAX:

  • 8GB of RAM (12GB recommended)
  • 4 cores vCPU (6 cores recommended)
  • 300GB disk space (SSD recommended)

Siapkan domain name dan subdomain aplikasi, misalnya:

  • zavala.store
  • app.zavala.store

Arahkan kedua domain tersebut ke IP public VM.

Kalau di Digital Ocean, pakai VM:

  • 4 GB / 2 CPUs
  • 80 GB SSD Disk
  • 4 TB transfer

Additional Volume:

  • 100 GB

2 Install Docker and docker compose

Copas dari sini:

Docker Ubuntu Step by Step

Lengkapnya disini:

3 Siapkan User VM

Jalankan command:

useradd -g users -s `which bash` -m app
usermod -aG sudo app
usermod -aG docker app
passwd app

4 Install opendax , rvm, dan Ruby

Pindah ke folder mounting volume yang 100Gb

cd /mnt/volume_sgp1_02
mkdir projects
chown -R app projects

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

curl -sSL https://get.rvm.io | bash -s stable

sudo usermod -a -G rvm app

su - app
cd /mnt/volume_sgp1_02/projects
git clone https://github.com/openware/opendax.git

cd opendax
rvm install "ruby-2.6.6" # kalau ditanya pasword, masukkan password user app (ini perintah sudo)
rvm install .
gem install bundler:2.1.4

bundle install
rake -T # To see if ruby and lib works

5 Edit config file

Edit config/app.yml

vi config/app.yml 

Setup key, misalnya :

  • name: CoinGue
  • domain: zavala.store
  • subdomain: app

6 Jalankan opendax

rake service:all

Dia akan menjalankan banyak docker containers yg berupa micro services OpenDAX

  • baseapp = frontend app
  • barong = auth app
  • paetio = core exchange
  • traefik
  • redis
  • mysql
  • vault
  • rabbitmq
  • influxdb

5 Tes login

Seeded users: Email: [email protected], password: 0lDHd9ufs9t@ Email: [email protected], password: Am8icnzEI3d!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment