Preconfigured Development Docker setup
This page describes the usage of the preconfigured developer Docker setup.
To diminish the time spent on configuration and research, we have created a docker-compose setup that ships a pre-configured Wasp node with a Hornet based private tangle, ready to run out of the box.
Running the setup
Checkout the project and move to the
git clone https://github.com/iotaledger/wasp.git
Further information about the setup is to be found in the
It initializes Hornet and creates a fresh image of the checked out Wasp code.
If you do modifications inside the branch, docker-compose will include them into the Wasp image too.
All Wasp ports will bind to 127.0.0.1 by default.
If you want to expose the ports to the outside world, run
HOST=0.0.0.0 docker-compose up.
Wasp is configured to allow any connection coming from wasp-cli. This is fine for development purposes, but please make sure to not run it on a publicly available server, or to create matching firewall filter rules.
Besides this, everything should simply work as expected. Faucet requests will be handled accordingly, you will be able to deploy and run smart contracts. All useful ports such as:
- Wasp Dashboard (7000) (username: wasp, password: wasp)
- Wasp API (9090)
- Hornet Dashboard (8081) (username: admin, password: admin)
- Hornet API (14265)
- Faucet API (8091)
are available to the local machine.
As all ports are locally available, this
wasp-cli.json configuration is to be used:
wasp-cli init to generate a seed, and you are ready to go.
See Configuring wasp-cli for further information.