I have a very simple 2 container application, 1 running Tomcat the other Redis. I am attempting to use docker-compose but the link between the containers is not working.
If I simply do a run with the below commands all is happy.
docker run -d --name db redis
docker run -d -P --name web --link db web
When I attempt to use the below docker-compose.yml file there is no link between the containers.
There are no environment variables created using docker-compose and the /etc/hosts file is not updating.
I’m puzzled since this is literally a copy of several of the examples I’ve found on numerous site, including docker.com. Any help would be greatly appreciated.