It's a good post about Docker, but will be better if you are using Docker 1.13 and Compose v3. The new Docker features allow you to create a custom network and manage a stack more easily. I recommend you to check the Docker changelog. :)