Skip to content

8. Mata Elang Dashboard

Fadhil Yori Hibatullah edited this page Apr 16, 2021 · 2 revisions

Back

  1. Make sure you already installed Docker at Defense Center environment, see https://docs.docker.com/install/ for Docker installation tutorial.

  2. Clone Kaspaservice and Kaspaclient. Place it in the same folder. Example :

$ tree
 |
 |- KaspaServices
 |- Kaspaclient
 |- docker-compose.yml
  1. Create a new file called docker-compose.yml, with the following content :
version: "3.2"

services:
  kaspaclient:
    build: ./KaspaClient/
    container_name: kaspaclient
    hostname: kaspaclient
    ports:
      - "8800:5000"
    env_file: 
      - ./KaspaClient/.env

  kaspaservices:
    build: ./KaspaServices
    container_name: kaspaservices
    hostname: kaspaservices
    env_file: 
      - ./KaspaServices/.env
    
  1. Don't forget to fill the two files kaspaclient.env and kaspaservice.env
    kaspaclient.env :

    API_HOST=
    API_USER=
    API_PASS=
    SECRET_TOKEN=
    SECRET_PASSWORD=
    SECRET_KEY=
    

    kaspaservice.env :

    CASSANDRA_USERNAME=
    CASSANDRA_PASSWORD=
    CASSANDRA_CLUSTER_HOST=
    DEFAULT_OINKCODE=
    SECRET_KEY=
    
  2. Pull the image

    $ docker-compose pull
    
  3. Start Docker services in daemon mode using these command:

    $ docker-compose up -d
    
  4. Make sure that all service running

    $ docker-compose ps
    
  5. Open web browser, and navigate to http://your-server-ip:8800

Back