You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-12Lines changed: 37 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,15 @@ and align with the decentralized governance objectives of Cardano's Voltaire era
20
20
21
21
### Using Docker
22
22
23
-
Before running whole service locally using docker you need to add few of the environment variables
24
-
on file `docker-compose.dev.yml`
23
+
Before running whole service locally using docker you need to create a `.env` and `.env.dbsync` file from `.env.example` and `.env.dbsync.example` respectively to add environment variables.
24
+
Below are some of the descriptions of the environment variables.
25
25
26
-
##### api
27
-
- AGENT_MNEMONIC
26
+
**Changes to be made in `.env` file**
27
+
28
+
##### api and manager
29
+
- KAFKA_PREFIX
30
+
- prefix for kafka topic
31
+
- AGENT_MNEMONIC
28
32
- Add seed phrase to generate wallet
29
33
30
34
##### agent_manager
@@ -35,20 +39,27 @@ on file `docker-compose.dev.yml`
35
39
- Add a wallet address having sufficient ADA so that it can be used to transfer ADA to agent when requested
36
40
- FAUCET_API_KEY (OPTIONAL)
37
41
- Add faucet api key to load ADA which will be used to transfer ADA to agents as per request. And it will only be used if the provided `MANAGER_WALLET_ADDRESS` doesnot have sufficient ADA.
38
-
- AGENT_MNEMONIC
39
-
- Add seed phrase to generate wallet that should be same as added in `api`
40
42
- BLOCKFROST_API_KEY (Required if ENABLE_BLOCKFROST_SUBMIT_API is 'True' or enabled)
41
43
- Visit [Blockfrost](https://blockfrost.io/) and sign up and generate api key
42
44
43
-
Note: environment variable `ENABLE_BLOCKFROST_SUBMIT_API` is preferred as if it is not enabled then `Kuber` will be used to submit the transaction which might take couple of minutes.
45
+
***Note***: environment variable `ENABLE_BLOCKFROST_SUBMIT_API` is preferred as if it is not enabled then `Kuber` will be used to submit the transaction which might take couple of minutes.
44
46
45
47
##### dbsync
46
-
-DATABASE_URL
48
+
-DBSYNC_DATABASE_URL
47
49
- Add database url of dbsync
48
50
49
-
Furthermore all env are setup to run in `Sanchonet` so if you want to run in `Preprod` or `Preview`
51
+
##### docker network name
52
+
- DOCKER_NETWORK_NAME
53
+
- Change name for docker network as default value is provided in `.env.example`
54
+
55
+
##### agent
56
+
- AGENT_NODE_DOCKER_IMAGE_NAME
57
+
- Change name for docker network as default value is provided in `.env.example`
58
+
59
+
***Note***: Furthermore all env are setup to run in `Sanchonet` so if you want to run in `Preprod` or `Preview`
50
60
Network then following environment variables are to be updated:
51
61
62
+
**Changes to be made in `.env` file**
52
63
##### frontend
53
64
- NEXT_PUBLIC_NETWORK_NAME
54
65
- preview or preprod
@@ -73,19 +84,33 @@ Network then following environment variables are to be updated:
73
84
- NETWORK_NAME
74
85
- preprod or preview
75
86
76
-
##### dbsync
77
-
-DATABASE_URL
87
+
##### dbsync
88
+
-DBSYNC_DATABASE_URL
78
89
- Update the dbsync database url and database name accordingly
79
90
91
+
92
+
Finally run the given command below:
80
93
```shell
81
94
docker compose -f docker-compose.dev.yml up -d
82
95
```
83
96
84
-
**Note**: You can also use already existing services in place of this
97
+
**Note** Make sure no application is running on port `3000`, `8000`
98
+
99
+
**Note**: After running the above command line, you can run the agent by following steps:
100
+
###### For running agent:
101
+
- Visit frontend at `http://localhost:3000` and connect your wallet.
102
+
- Then click the `My Agent` tab at bottom left. you will be navigated to `Agents Page`
103
+
- In `Overview Tab` click `Run Agent` button at the top right of `Agents Overview Section`
104
+
- Now copy the docker command and run it in terminal. And Finally your agent is ready to run.
85
105
86
106
107
+
### Setup Locally
108
+
87
109
The setup guide for each services are in the respective directories:
88
110
111
+
For running all services locally some of the dependent services like `Kafka`, `Postgresql` can be run via Docker using following command.
0 commit comments