@@ -30,7 +30,10 @@ Starting Iroha Node
30
30
31
31
Creating a Docker Network
32
32
^^^^^^^^^^^^^^^^^^^^^^^^^
33
- To operate, Iroha requires a ``PostgreSQL `` database.
33
+ To operate, Iroha requires a ``PostgreSQL `` database or ``RocksDB ``.
34
+ If you prefer ``PostgreSQL ``, you will need a container running it alongside Iroha.
35
+
36
+
34
37
Let's start with creating a Docker network, so containers for Postgres and
35
38
Iroha can run on the same virtual network and successfully communicate.
36
39
In this guide we will call it ``iroha-network ``, but you can use any name.
@@ -43,6 +46,8 @@ In your terminal write following command:
43
46
Starting PostgreSQL Container
44
47
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
48
49
+ .. note :: You do not need to start this container if your plan is to use Iroha with RocksDB and not PostgreSQL. Just skip to the next step.
50
+
46
51
Now we need to run ``PostgreSQL `` in a container, attach it to the network
47
52
you have created before, and expose ports for communication:
48
53
@@ -114,6 +119,8 @@ Let's start Iroha node in Docker container with the following command:
114
119
-e KEY=' node0' \
115
120
hyperledger/iroha:latest
116
121
122
+ .. note :: If you are using Iroha with RocksDB, please add ``--entrypoint irohad`` to these parameters, to skip the PostgreSQL container check.
123
+
117
124
If you started the node successfully you would see the container id in the same console where you started the container.
118
125
119
126
Let's look in details what this command does:
0 commit comments