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
docker run -it --name run --network rasa-network -v $(pwd):/app my/rasa shell
- edit your endpoints.yml, as
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.