Assume I build an action docker my/app, and I’m also running rasa/rasa:1.7.0-full as docker run -it -v $(pwd):/app rasa/rasa:1.7.0-full shell on the same instance, then how to set endpoints.yml? What should I change the “localhost” to?
You’re right. We can either use docker-compose or use docker alone to do it. I’ve solved my case as below: Asume you have my/app and my/rasa dockers, to connect two containers on the same machine:
create a docker bridge network “rasa-network”, as
docker network create rasa-network
connect rasa and action containers to this bridge network when start them, as
docker run --name action --network rasa-network my/app
and
docker run -it --name run --network rasa-network -v $(pwd):/app my/rasa shell
edit your endpoints.yml, as
http://action:5055/webhook
Basically, docker containers can access each other’s services by the name of container as long as they are connceted to the bridge network you pre-defined.