https://github.com/thephez/docker-dash-testnet
Unofficial way to run DAPI on testnet
https://github.com/thephez/docker-dash-testnet
dapi
Last synced: 4 months ago
JSON representation
Unofficial way to run DAPI on testnet
- Host: GitHub
- URL: https://github.com/thephez/docker-dash-testnet
- Owner: thephez
- License: mit
- Created: 2019-06-06T17:00:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-06T14:27:20.000Z (almost 7 years ago)
- Last Synced: 2025-09-11T15:55:25.937Z (9 months ago)
- Topics: dapi
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-dash-testnet
## Start services
Foreground: `docker-compose -p dash-testnet -f docker-compose.yml up`
Background: `docker-compose -p dash-testnet -f docker-compose.yml up -d`
## Stop services
All services: `docker-compose -p dash-testnet -f docker-compose.yml stop`
Specific service: `docker-compose -p dash-testnet -f docker-compose.yml stop dapi_core`
## Remove components created by `up`
Retain volume(s):`docker-compose -p dash-testnet -f docker-compose.yml down`
Remove volume(s): `docker-compose -p dash-testnet -f docker-compose.yml down --volume`
## View logs
All services: `docker-compose -p dash-testnet -f docker-compose.yml logs`
Specific service (e.g. `dashd_core`): `docker-compose -p dash-testnet -f docker-compose.yml logs -f dashd_core`
Last 10 lines only: `docker-compose -p dash-testnet -f docker-compose.yml logs --tail 10`
## Execute command on a service
`docker-compose -p dash-testnet -f docker-compose.yml exec dashd_core ls`
`docker-compose -p dash-testnet -f docker-compose.yml exec dashd_core dash-cli -conf=/dash.conf getinfo`
## Included services
| Service | Docker Image | Function |
| --- | --- | --- |
`dashd_core` | [dashpay/dashd](https://hub.docker.com/r/dashpay/dashd) | Dash Core Blockchain |
`dapi_core` | [dashpay/dapi](https://hub.docker.com/r/dashpay/dapi) | HTTP API |
`insight_api` | [dashpay/insight-api](https://hub.docker.com/r/dashpay/insight-api) | Supports some DAPI API endpoints |
## Mining
If running on a devnet, it is possible to mine by configuring a cron entry to
run `docker-compose exec` as follows:
`*/2 * * * * /usr/local/bin/docker-compose -f /docker-compose.yml exec -T dashd_core dash-cli -conf=/dash.conf generate 1`