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:

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

  • How to run headless Firefox profile manager? How run Firefox profile manager in docker?
  • Logging new connections in a docker container
  • Docker Compose CLI Flags
  • webpack-dev-server hot loading not working with boot2docker
  • Mapping docker port is failed
  • I am able to fetch the URL from Rancher Stack using Putty. How do I fetch the same URL from a Rancher Stack using shell commands in Jenkins
  • 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?

  • can't connect to local mysql server through socket while running db using volume
  • How do i bind Docker container to a specific external IP address, if i need to allocate many ports?
  • Where does docker-machine save the configuration on a remote Ubuntu host running systemd?
  • Nginx 502: Bad Gateway with rstudio server
  • Ubuntu/UFW: How to tell Docker not to expose all ports?
  • Installed docker and ran a container with mongodb, now brew's mongodb isn't working
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.