This is probably a silly question, but I’m a little confused as to how the Agno Playground web app can connect to a localhost port that is exposed by the docker container from the Simple Agent API. Shouldn’t that localhost port not be available to the wider web?
Hey @nbbaier
thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.
If it’s urgent, please let us know. We appreciate your patience!
When you run:
docker compose up -d
it starts a FastAPI server inside a Docker container, but exposes port 8000 on your host machine. That means:
You can access it from: * Your browser at http://localhost:8000
If you’re using Agno Playground in your browser:
- Your browser is talking directly to
localhost:8000
.
Thanks @pritiagno! So, to make sure I understand, because the agno playground is running in the browser on my machine, and not some remote server, then it can talk to the localhost?
Yes you’re right about it @nbbaier