forked from ferryastika/MataElang-Platform
-
Notifications
You must be signed in to change notification settings - Fork 1
8. Mata Elang Dashboard
Fadhil Yori Hibatullah edited this page Apr 16, 2021
·
2 revisions
-
Make sure you already installed Docker at Defense Center environment, see https://docs.docker.com/install/ for Docker installation tutorial.
-
Clone Kaspaservice and Kaspaclient. Place it in the same folder. Example :
$ tree
|
|- KaspaServices
|- Kaspaclient
|- docker-compose.yml
- 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
-
Don't forget to fill the two files
kaspaclient.env
andkaspaservice.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=
-
Pull the image
$ docker-compose pull
-
Start Docker services in daemon mode using these command:
$ docker-compose up -d
-
Make sure that all service running
$ docker-compose ps
-
Open web browser, and navigate to
http://your-server-ip:8800