Skip to content

Commit d181a99

Browse files
Merge pull request #1 from raspberry-lef/doc-update
Show how to register agent when running AW with Docker
2 parents 01524c0 + 09bb294 commit d181a99

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ Note the URL of the agent's server (usually it is `http://127.0.0.1:5000/`), and
2626
export REMOTE_AGENT_URL="http://127.0.0.1:5000/"
2727
```
2828

29+
If using [Docker to run ActiveWorkflow](https://docs.activeworkflow.org/#running-locally-with-docker),
30+
you'll need to use the `-e` parameter to `docker run` to pass `REMOTE_AGENT_URL` through
31+
to ActiveWorkflow. The address in the URL will also have to be updated to match where the agent
32+
is running (`127.0.0.1` is unlikely to be correct). Docker provides `host.docker.internal` for the host IP.
33+
Thus, you could run:
34+
```sh
35+
docker run -e REMOTE_AGENT_URL="http://host.docker.internal:5000/" -p 3000:3000 --rm automaticmode/active_workflow
36+
```
37+
2938
Now you can start ActiveWorkflow. You should be able to create instances of this agent (named "Python Test Agent"). Run it and send messages to it.
3039

3140
Please note that this project is just a minimal example. Consider using a proper project structure when developing your own ActiveWorkflow agents.

0 commit comments

Comments
 (0)