未验证 提交 4e244c0f 编写于 作者: K Kevin Heifner 提交者: GitHub

Merge pull request #2534 from noprom/merge-dawn3.0

Add mongo_db_plugin support in dawn3.0
......@@ -153,18 +153,28 @@ run `docker-compose up`
We can easliy set up a dawn3.0 local testnet using docker images. Just run the following commands:
Note: if you want to use the mongo db plugin, you have to enable it in your `data-dir/config.ini` first.
```
# pull images
docker pull eosio/eos:dawn3x
docker pull eosio/eos:latest
docker pull mongo:latest
# create volume
docker volume create --name=nodeos-data-volume
docker volume create --name=keosd-data-volume
docker volume create --name=mongo-data-volume
# start containers
docker-compose -f docker-compose-dawn3.0.yaml up -d
# get chain info
curl http://127.0.0.1:8888/v1/chain/get_info
# get logs
docker-compose logs nodeosd
# stop containers
docker-compose -f docker-compose-dawn3.0.yaml down
```
The `blocks` data are stored under `--data-dir` by default, and the wallet files are stored under `--wallet-dir` by default, of course you can change these as you want.
### About MongoDB Plugin
Currently, the mongodb plugin is disabled in `config.ini` by default, you have to change it manually in `config.ini` or you can mount a `config.ini` file to `/opt/eosio/bin/data-dir/config.ini` in the docker-compose file.
\ No newline at end of file
version: "3"
services:
mongo:
image: mongo:latest
hostname: mongo
ports:
- 27017:27017
volumes:
- mongo-data-volume:/data/db
nodeosd:
image: eosio/eos:dawn3x
command: /opt/eosio/bin/nodeosd.sh --data-dir /opt/eosio/bin/data-dir
image: eosio/eos:latest
command: /opt/eosio/bin/nodeosd.sh --data-dir /opt/eosio/bin/data-dir --resync --mongodb-uri mongodb://mongo:27017/EOS
hostname: nodeosd
links:
- mongo
ports:
- 8888:8888
- 9876:9876
......@@ -14,7 +24,7 @@ services:
- nodeos-data-volume:/opt/eosio/bin/data-dir
keosd:
image: eosio/eos:dawn3x
image: eosio/eos:latest
command: /opt/eosio/bin/keosd --wallet-dir /opt/eosio/bin/data-dir
hostname: keosd
links:
......@@ -23,6 +33,8 @@ services:
- keosd-data-volume:/opt/eosio/bin/data-dir
volumes:
mongo-data-volume:
external: true
nodeos-data-volume:
external: true
keosd-data-volume:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册