Running multiple dependent apps each with their own docker compose file

I have two apps that I would like to somehow combine with docker and docker compose. The apps are:

This I have been able to get running on docker.
Consists of the following containers: Web (rails app), postgres, and redis.

  • Resolving env inside another env
  • What's the difference between Google's Borg and Google's Kubernetes and Docker
  • PCI passthrough strategy in Docker or oVirt
  • How can I enable MySQL binary logging using the official Docker image?
  • Docker Unbound DNS Server: How to launch as service
  • Installing systemd inside a ubuntu14.04 docker container - Is it possible?
  • Scraping app
    This app scrapes other websites, makes sure the data is consistent, and sends it to the API. This is the app I dunno how to get running on docker.
    Its a node app and would consist of the following containers: Web (sails app), mongodb, redis, the API.

    My question is if its possible to write the Dockerfile or docker-compose.yml file for the scraping app such that it is linked to the API app, which itself is linked to at least two other containers. Or do I have to manually boot the API app before booting the scraping app?

  • RabbitMQ inside docker won't end gracefully and cannot reconnect
  • Docker build ends with error “the command … returned a non-zero code: 100”
  • Compile docker on armv7
  • 404 error when Accessing from local host : NGINX uWSGI
  • Boot2Docker start up fails in windows
  • Flask Nginx Guincorn/uwsgi docker configuration [closed]
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.