agent with ourchain
please refer to the following file: api.md
quick start (only for x86_64, other platform please create own image):
- run
docker volume create node_data
start disk volume - run
docker-compose up -d
in this project root directory - use
docker-compose down
in this project root directory to stop container
note:
docker volume create node_data
建立 node_data volume 作為節點資料外部儲存區docker volume rm node_data
刪除 node_data volumedocker-compose up -d
啟動容器群集docker-compose down
停止容器群集docker-compose pull
更新容器群集docker run -it --rm -v node_data:/node busybox sh
進入節點資料外部儲存區sudo docker exec -it go-aid-chain-1 /bin/bash
進入區塊鏈(可以用bitcoin-cli generate 1
重置)docker-compose logs -f
查看容器群集日誌docker-compose ps
查看容器群集狀態
sudo apt install nginx
安裝 nginxsudo nginx -t
檢查 nginx 設定檔語法sudo systemctl restart nginx
重啟 nginxsudo systemctl status nginx
查看 nginx 狀態sudo systemctl stop nginx
停止 nginxsudo systemctl start nginx
啟動 nginxsudo systemctl enable nginx
設定 nginx 開機自動啟動sudo vim /etc/nginx/nginx.conf
編輯 nginx 設定檔