title: Run docker-compose from bash script file
body: <p>I am new to scripting and require some assistance. I am building docker container using YML file. I have YML code written to automate my web server (docker-compose.yml) and database server(docker-compose-mongo.yml). </p>
  
  <p>Now I want to build a bash script that will call for both the yml files and run together. </p>
  
  <p>I was wondering what commands do I need to type within my shell script to call for these two yml files and run them together. I initially just used</p>
  
  <pre><code>#!/bin/bash
  run docker-compose.yml
  </code></pre>
  
  <p>But the above code didn't work.</p>
  
  <p>Ps. below is my yml file for the web server</p>
  
  <pre><code>version: "3"
  services:
    web:
      image: nginx:latest
      deploy:
        replicas: 5
        resources:
          limits:
            cpus: "0.2"
            memory: 330M
        restart_policy:
          condition: on-failure
      ports:
        - "80:80"
      # networks:
        # - webnet
  # networks:
    # webnet:
  </code></pre>